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 12, 2024
1 parent 70d2660 commit 69c2668
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server-data/resources/[esx]/bpt_society/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ game("gta5")

description("ESX Society")
lua54("yes")
version("1.0.1")
version("1.0.2")

shared_script("@es_extended/imports.lua")

Expand Down
4 changes: 2 additions & 2 deletions server-data/resources/[esx]/bpt_society/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ ESX.RegisterServerCallback("bpt_society:getVehiclesInGarage", function(_, cb, so
end)

ESX.RegisterServerCallback("bpt_society:isBoss", function(source, cb, job)
cb(isPlayerBoss(source, job))
cb(IsPlayerBoss(source, job))
end)

function isPlayerBoss(playerId, job)
function IsPlayerBoss(playerId, job)
local xPlayer = ESX.GetPlayerFromId(playerId)

if xPlayer.job.name == job and xPlayer.job.grade_name == "boss" then
Expand Down

0 comments on commit 69c2668

Please sign in to comment.