\\\\Outdated////////
Nice thanks for the work Iām sure people would love this script.
by typing /fine you give money am i right?
Oh my bad sorry about that i fixed it
replace user:addMoney((fine)) by user:removeMoney((fine)) in sv_fine
Already did like 20 min ago
My bad
By the way it would be great if you release Ć version with permission setting inside
Anyway thanks for the share
Yeah, i was planning on making one but im pretty busy, iāll try to make it this week
Nice sharing, you really do a good job this script is great
Do you think that would be correct?
TriggerEvent(āes:addCommandā, āamendeā, function(source, args, user)
if user.permission_level >= 0then
return
end
or (args[2] ~= nil and tonumber(args[3]) > 0) then
local receiverid = tonumber(args[2])
local fine = tonumber(args[3])
TriggerEvent(āap:fineā, receiverid, fine)
end
end)
Iām not sure about myself
if (args[2] ~= nil and tonumber(args[3]) > 0 and user.permission_level>=0) then
local receiverid = tonumber(args[2])
local fine = tonumber(args[3])
TriggerEvent(āap:fineā, receiverid, fine)
end
I did it like this and it seems to work
i did to put the fine and get the money of the fine
RegisterServerEvent(āap:fineā)
AddEventHandler(āap:fineā, function(receiverid, fine)TriggerEvent('es:getPlayerFromId', receiverid, function(user) local player = user.identifier user:removeMoney((fine)) TriggerClientEvent("rc:fine", receiverid, fine) end)
end)
TriggerEvent(āes:addCommandā, āfineā, function(source, args, user)
if (args[2] ~= nil and tonumber(args[3]) > 0 and user.permission_level>=2) then
local receiverid = tonumber(args[2])
local fine = tonumber(args[3])
user:addMoney((fine))
TriggerEvent(āap:fineā, receiverid, fine)
end
end)
can you make it so only cops can enter this command?
user.permission_level>=2 is set, that means that the users that have that permission can give out a ticket.
Great relase Thanks
Is there maybe a way to ask before give the Fine ? Like :
Youāhave been given a Fine, Do you wish to pay it ? Y to pay N to refuse.
Could be fun in RP Servers.
yeah but i dont want it that way I want it depending when player has a cop skin that much better that way.
You are trying to do like FailyV huh ? haha sure iāll start working on it, it will be released this week
is there a way to put it inside freeroam?
If you can make a script like this Trinnity, I gonna be the first to download it
I dunno why but I canāt get this to work. Iāve installed everything like the readme says, but when I do the chat command it will not work.