mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-18 14:56:02 +01:00
Refactor a couple files for readability
This commit is contained in:
@@ -16,10 +16,10 @@ RegisterServerEvent(getScript()..":server:PolCharge", function(citizen, price)
|
||||
commPercent = Config.PolCharge.FineJobs[biller.job].Commission
|
||||
else
|
||||
commPercent = 0.25
|
||||
print("Can't find job in 'FineJobs', defaulting to 0.25 (25% commission)")
|
||||
print("^3Warning^7: ^2Can't find player's job in ^7'Config.Polcharge.FineJobs', ^2defaulting to 0.25 (25% commission)^7")
|
||||
end
|
||||
local commission = math.floor(price * commPercent)
|
||||
|
||||
print(commission)
|
||||
if price > 0 then
|
||||
if not Config.PolCharge.FineJobConfirmation then
|
||||
polCharge({
|
||||
|
||||
Reference in New Issue
Block a user