Exports / Events
Exports - Client
Placing Bench
placeBench - This is used for placing the bench
exports['pure-crafting']:placeBench(type)
- type:
string
| The type of the bench
Bench Types:
- misc
- weapons
Events - Client - Handlers
Bench Management
placeBench - This is used when a bench item has been used and the bench is placed
RegisterNetEvent('pure-crafting:placeBench', function(bench)
-- Code here
end)
refreshBenches - This is used for when the benches are refreshed (such as when a user loads in)
RegisterNetEvent('pure-crafting:refreshBenches', function(benches)
-- Code here
end)
- benches:
table
| The benches
insertBench - This is used for when a bench is inserted
RegisterNetEvent('pure-crafting:insertBench', function(newBench)
-- Code here
end)
- newBench:
table
| The new bench
Blueprints
useBlueprint - This is used for when a blueprint is used
RegisterNetEvent('pure-crafting:useBlueprint', function(name)
-- Code here
end)
- name:
string
| The name of the blueprint
Events - Client - Triggers
Placing Bench
placeBench - This is used for opening the laptop
TriggerEvent('pure-crafting:placebench', type)
- type:
string
| The type of the bench
Bench Types:
- misc
- weapons