📕Step By Step Guide
What to do first?
Download and upload the resource to your server files.
Import the SQL file to your database
Add
ensure koja-crafting
to your server.cfgConfigure
config.lua to your likings
Give your players something new to do!
How to add XP?
You need to add a trigger to end of a function that a player needs to finish
> Server.lua
RegisterServerEvent('koja-job:server:success')
AddEventHandler('koja-job:server:success', function()
local xPlayer = ESX.GetPlayerFromId(source)
TriggerEvent('koja-crafting:addXP', xPlayer.source, XP_AMOUNT)
end)
> Client.lua
RegisterNetEvent("koja-job:client:success", function()
TriggerServerEvent('koja-crafting:addXP', XP_AMOUNT)
end)
Last updated