Skip to content

Commit

Permalink
fix: global variable with lowercase initial
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Sep 17, 2024
1 parent 0b0aad0 commit 4e97fb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server-data/resources/[esx]/es_extended/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if Config.Multichar then
if not ESX.Players[src] then
local identifier = char .. ":" .. ESX.GetIdentifier(src)
if data then
createESXPlayer(identifier, src, data)
CreateESXPlayer(identifier, src, data)
else
LoadESXPlayer(identifier, src, false)
end
Expand All @@ -43,12 +43,12 @@ else
end

if not ESX.Players[_source] then
onPlayerJoined(_source)
OnPlayerJoined(_source)
end
end)
end

function onPlayerJoined(playerId)
function OnPlayerJoined(playerId)
local identifier = ESX.GetIdentifier(playerId)
if identifier then
if ESX.GetPlayerFromIdentifier(identifier) then
Expand All @@ -63,15 +63,15 @@ function onPlayerJoined(playerId)
if result then
LoadESXPlayer(identifier, playerId, false)
else
createESXPlayer(identifier, playerId)
CreateESXPlayer(identifier, playerId)
end
end
else
DropPlayer(playerId, "there was an error loading your character!\nError code: identifier-missing-ingame\n\nThe cause of this error is not known, your identifier could not be found. Please come back later or report this problem to the server administration team.")
end
end

function createESXPlayer(identifier, playerId, data)
function CreateESXPlayer(identifier, playerId, data)
local accounts = {}

for account, money in pairs(Config.StartingAccountMoney) do
Expand Down

0 comments on commit 4e97fb4

Please sign in to comment.