Skip to main content

createCraftPlace

info

This function should be triggered both on clientside and serverside.

Use the function in a shared .lua file!

Data type
---@class CraftingPlaceStaticData
---@field craftPlaceName string
---@field items { name:string; quantity: number; meta: InventoryItemMetaData; ingredients: { name:string; quantity:number; }[] }[]
---@field blip? { sprite:number; colour:number; scale:number; }
---@field peds? { modelName:string; scenario?: string; coords?: vector3; heading: number; }[]
---@field locations? { range:number; coords: vector3; }[]

Export function to create a crafting place location from another resource.

  • craftPlaceData CraftingPlaceStaticData
exports["avp_inv_4"]:createCraftPlace(craftPlaceData)