mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 06:16:02 +01:00
qb-management export update
This commit is contained in:
@@ -246,7 +246,7 @@ RegisterServerEvent("jim-payments:server:ATM:give", function(citizen, price)
|
|||||||
Player.Functions.RemoveMoney('cash', amount)
|
Player.Functions.RemoveMoney('cash', amount)
|
||||||
TriggerClientEvent("QBCore:Notify", source, "You gave "..Reciever.PlayerData.charinfo.firstname.." $"..cv(amount), "success")
|
TriggerClientEvent("QBCore:Notify", source, "You gave "..Reciever.PlayerData.charinfo.firstname.." $"..cv(amount), "success")
|
||||||
Reciever.Functions.AddMoney('cash', amount)
|
Reciever.Functions.AddMoney('cash', amount)
|
||||||
TriggerClientEvent("QBCore:Notify", tonumber(citizen), "You got $"..cv(amount).." from "..Reciever.PlayerData.charinfo.firstname, "success")
|
TriggerClientEvent("QBCore:Notify", tonumber(citizen), "You got $"..cv(amount).." from "..Player.PlayerData.charinfo.firstname, "success")
|
||||||
elseif balance < amount then
|
elseif balance < amount then
|
||||||
TriggerClientEvent("QBCore:Notify", source, "You don't have enough cash to give", "error")
|
TriggerClientEvent("QBCore:Notify", source, "You don't have enough cash to give", "error")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user