Update main.lua

This commit is contained in:
Andyyy7666
2022-04-13 20:35:02 +02:00
committed by GitHub
parent 136bd60185
commit c7cc06532c

View File

@@ -122,9 +122,10 @@ AddEventHandler("newCharacter", function(newCharacter)
local departmentCheck = validateDepartment(player, newCharacter.department) local departmentCheck = validateDepartment(player, newCharacter.department)
if not departmentCheck then return end if not departmentCheck then return end
if config.enableMoneySystem then
local startingCash = newCharacter.startingCash local startingCash = newCharacter.startingCash
local startingBank = newCharacter.startingBank local startingBank = newCharacter.startingBank
print(startingCash)
if config.enableMoneySystem then
-- Don't trust the client, validate maximum amounts. -- Don't trust the client, validate maximum amounts.
local moneyCheck = validateMoney(startingCash, startingBank) local moneyCheck = validateMoney(startingCash, startingBank)