Open SliderKP opened 5 years ago
if xPlayer.job.name == 'ambulance' then
xPlayer.addMoney(Config.ReviveReward)
TriggerClientEvent('des_ambulancejob:revive', target)
TriggerEvent('des_addonaccount:getSharedAccount', 'society_ambulance', function(account)
account.addMoney(Config.ReviveReward)
end)
else
print(('esx_ambulancejob: %s attempted to revive!'):format(xPlayer.identifier))
end
what changes should I make to this code so that the reward money to revive goes to the ambulance society.
RegisterServerEvent('esx_ambulancejob:revive') AddEventHandler('esx_ambulancejob:revive', function(target) local xPlayer = ESX.GetPlayerFromId(source)
end)
Thankyou