[Release] SimpleFine

\\\\Outdated////////

2 Likes

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 :slight_smile:

replace user:addMoney((fine)) by user:removeMoney((fine)) in sv_fine

Already did like 20 min ago :slight_smile:

My bad :slight_smile:

By the way it would be great if you release Ć  version with permission setting inside
Anyway thanks for the share :wink:

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 :worried:

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

1 Like

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 :slight_smile:
Is there maybe a way to ask before give the Fine ? :slight_smile: 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

2 Likes

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 :slight_smile:

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.

1 Like