Config
#Settings
Groups the main configuration options for this resource. The child sections below document each nested setting.
#props
Defines a keyed collection of
propsentries. The child sections below document the fields available for each entry.
Example:luaprops = { ["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:luamodel = "prop_ld_flow_bottle"
#props[x].offset
Attachment offset for this prop template. The
vector3value is passed into the prop attachment step as the X, Y, and Z offset.
Example:luaoffset = vector3(0.123, -0.039, 0.033)
#props[x].rotation
Attachment rotation for this prop template. The
vector3value is passed into the prop attachment step as the X, Y, and Z rotation.
Example:luarotation = 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:luabone = 18905
#machines
Defines a keyed collection of
machinesentries. The child sections below document the fields available for each entry.
Example:luamachines = { [`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:luainteractOffset = vector3(0.0, -0.97, 0.05)
#machines[x].items
Defines a list of
itemsentries. The child sections below document the fields available for each entry.
Example:luaitems = { {name = "sprunk", prop = "sprunk", price = 2}, ... }
#machines[x].items[x].name
Inventory item name sold by this vending machine option.
Example:luaname = "sprunk"
#machines[x].items[x].prop
Prop template key from
propsused to display the purchased item during the vending animation.
Example:luaprop = "sprunk"
#machines[x].items[x].price
Cash price removed from the player when this vending machine item is purchased.
Example:luaprice = 2
