mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-11-26 09:14:45 +00:00
Refactor a couple files for readability
This commit is contained in:
1 parent
5e80192cef
commit
2b92f749b5
3 files changed
+78
-23
No files matched your search
@@ -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