📕Step By Step Guide

What to do first?

  1. Download and upload the resource to your server files.

  2. Import the SQL file to your database

  3. Add ensure koja-crafting to your server.cfg

  4. Configure config.lua to your likings

  5. 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

EXAMPLE:
> 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