Skip to content

Commit

Permalink
fix! Update usage of playerdata esx
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-Dylan committed Mar 31, 2024
1 parent c4a856a commit 4fbb6c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function openMenu(job)
local base = QBCore.Functions.GetPlayerData().charinfo.gender
if base == 0 then gender = 'male' else gender = 'female' end
elseif Shared.Framework == 'esx' then
gender = Esx.PlayerData.sex
gender = ESX.PlayerData.sex
elseif Shared.Framework == 'standalone' then
if IsPedMale(cache.ped) then gender = 'male' else gender = 'female' end
job = { name = job, label = job }
Expand Down Expand Up @@ -83,7 +83,7 @@ local function openMenu(job)
end

RegisterNetEvent("mtc-mikeyseup:client:openMenu", function()
if Shared.Framework == 'qb-core' then PlayerData = QBCore.Functions.GetPlayerData().job elseif Shared.Framework == 'esx' then PlayerData = Esx.PlayerData.job end
if Shared.Framework == 'qb-core' then PlayerData = QBCore.Functions.GetPlayerData().job elseif Shared.Framework == 'esx' then PlayerData = ESX.PlayerData.job end
local options = {}

options = {
Expand Down

0 comments on commit 4fbb6c2

Please sign in to comment.