Hi, I was wondering if there is a way to modify the QB-Ambulance script in order to give ambulance/ems paid per use of a first aid, bandage, and revive? Kind of like a reward system. Each time they were to revive someone, the EMS get paid like $50 or so.
I am not familiar with QB but this shouldn´t be a problem. Just add a line that gives money to the client in the revive function .
So I tried adding this Player.Functions.AddMoney('cash', 500, "Description")
under the revive function but i’m getting an error "Attempt to index a function value (global ‘player’)
Try to add this line above it:
local Player = QBCore.Functions.GetPlayer(tonumber(source))
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.