server side
Configuration Structure
Basic Crafting Location
local craftingData = {
loc = {
{
loc = vector3(-819.71, -859.37, 20.71),
checks = {} -- Location-specific restrictions
}
},
recipes = {
lockpick = {
amount = 1,
time = 5000,
anim = 'uncuff',
recipe = {
steel = 2,
iron = 1
}
}
},
checks = { -- Global restrictions for this crafter
job = {'police', 'mechanic'},
},
targetData = {
size = {
height = 1.0,
width = 1.0,
length = 1.0,
rotation = 180.0
},
label = 'Open Crafting',
icon = 'fa-solid fa-hammer'
}
}
exports['ps-lib']:registerCrafter(craftingData)Recipe Configuration
Recipe Properties
Minigame Integration
Job Restrictions
Gang Restrictions
Item Requirements
Citizen ID Restrictions
or
Multiple Restrictions
Usage Examples
Basic Workshop
Last updated