⚔️Export and Events
Mission system
RegisterNetEvent("frkn-fuelstation:server:PayForFuel", function(amount)
local src = source
if not src then return end
local player = QBCore.Functions.GetPlayer(src)
if not player then return end
player.Functions.RemoveMoney('bank', amount)
TriggerServerEvent('frkn-craftv2:givexp',20) --Here it gives the player 20xp after the process is finished. You can put this in your own scripts.This is just an example
end)
Last updated