Zyke ResourcesDocumentation

Config

#Settings

Groups the main configuration options for this resource. The child sections below document each nested setting.

#props

Defines a keyed collection of props entries. The child sections below document the fields available for each entry.

Example:

props = {
    ["default"] = {
        model = "prop_ld_flow_bottle",
        offset = vector3(0.123, -0.039, 0.033),
        rotation = vector3(-103.202, -68.066, 2.815),
        bone = 18905,
    },
    ...
}

#props[x].model

Model name spawned for this prop template before it is attached to the player during the vending purchase animation.

Example:

model = "prop_ld_flow_bottle"

#props[x].offset

Attachment offset for this prop template. The vector3 value is passed into the prop attachment step as the X, Y, and Z offset.

Example:

offset = vector3(0.123, -0.039, 0.033)

#props[x].rotation

Attachment rotation for this prop template. The vector3 value is passed into the prop attachment step as the X, Y, and Z rotation.

Example:

rotation = vector3(-103.202, -68.066, 2.815)

#props[x].bone

Ped bone ID used when attaching this prop template to the player during the vending purchase animation.

Example:

bone = 18905

#machines

Defines a keyed collection of machines entries. The child sections below document the fields available for each entry.

Example:

machines = {
    [`ch_chint10_vending_smallroom_01`] = {
        interactOffset = vector3(0.0, -0.97, 0.05),
        items = {
            {name = "sprunk", prop = "sprunk", price = 2},
            {name = "ecola", prop = "ecola", price = 2},
            {name = "orango_tang", prop = "orango_tang", price = 2},
            {name = "junk", prop = "junk", price = 2}
        }
    },
    ...
}

#machines[x].interactOffset

Offset from the vending machine entity used to calculate where the player should stand for the purchase animation.

Example:

interactOffset = vector3(0.0, -0.97, 0.05)

#machines[x].items

Defines a list of items entries. The child sections below document the fields available for each entry.

Example:

items = {
    {name = "sprunk", prop = "sprunk", price = 2},
    ...
}

#machines[x].items[x].name

Inventory item name sold by this vending machine option.

Example:

name = "sprunk"

#machines[x].items[x].prop

Prop template key from props used to display the purchased item during the vending animation.

Example:

prop = "sprunk"

#machines[x].items[x].price

Cash price removed from the player when this vending machine item is purchased.

Example:

price = 2