Like it does not load anything. No Blips no nothing, i made mysel blip to that location if it was just that but nothing happens if i press H at Lester’s house.
EDIT: You should add some instructions how to use the script.
please washed cash via command admin … example " /washed 10000 " in owner in db and money washed … Please work for this command Im so novice for work this command : /
Im not sure but you can try : sv_admin.lua , add :
TriggerEvent('es:addGroupCommand', 'wash', "admin", function(source, args, user)
local cash = tonumber(user:getMoney()) -- Get player money
local dcash = tonumber(user:getDirty_Money()) -- Get player dirty money
if dcash <= 0 then -- If player have not dirty money then
TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Argent Sale", false, "Tu n'a pas d'argent à blanchir") -- You haven't got money to launder
else
local washedcash = dcash * 0.5 -- Change value (0.5 = 100 000 money - > 50 000 dirty money)
local total = cash + washedcash -- Total player cash + washed cash
user:setMoney(total) -- Set total money
user:setDirty_Money(0) -- Set dirty money to 0
TriggerClientEvent("es_freeroam:notify", source, "CHAR_LESTER", 1, "Argent Sale", false, "Vous avez blanchi ~g~".. tonumber(washedcash) .."$~r~ d'argent sale^0. Vous avez maintenant ~g~".. tonumber(total) .."$")
end -- Message: You have laundered 10$ , now you have 100$ (EXAMPLE)
end, function(source, args, user)
TriggerClientEvent('chatMessage', source, "SYSTEME", {255, 0, 0}, "Pas la permission !")
end)
I do not know if anyone can help me, but here I wanted to add the money launderer I put it no error and at the time it tells me H to bleach some error happens when 'press H