mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-19 14:56:02 +01:00
Update main.lua
This commit is contained in:
@@ -122,6 +122,7 @@ AddEventHandler("newCharacter", function(newCharacter)
|
||||
local departmentCheck = validateDepartment(player, newCharacter.department)
|
||||
if not departmentCheck then return end
|
||||
|
||||
if config.enableMoneySystem
|
||||
local startingCash = newCharacter.startingCash
|
||||
local startingBank = newCharacter.startingBank
|
||||
-- Don't trust the client, validate maximum amounts.
|
||||
@@ -133,6 +134,7 @@ AddEventHandler("newCharacter", function(newCharacter)
|
||||
startingCash = config.maxStartingCash
|
||||
startingBank = config.maxStartingBank
|
||||
end
|
||||
end
|
||||
|
||||
exports.oxmysql:query("SELECT character_id FROM characters WHERE license = ?", {GetPlayerIdentifierFromType("license", player)}, function(result)
|
||||
if (result) and (config.characterLimit > #result) then
|
||||
|
||||
Reference in New Issue
Block a user