diff --git a/client/main.lua b/client/main.lua index 5e3e7ce..cee7044 100644 --- a/client/main.lua +++ b/client/main.lua @@ -50,6 +50,11 @@ local function openMenu(job) if base == 0 then gender = 'male' else gender = 'female' end elseif Shared.Framework == 'esx' then gender = ESX.PlayerData.sex + if gender == 'm' then + gender = 'male' + else + gender = 'female' + end elseif Shared.Framework == 'standalone' then if IsPedMale(cache.ped) then gender = 'male' else gender = 'female' end job = { name = job, label = job } @@ -57,6 +62,8 @@ local function openMenu(job) local options = {} + print(gender) + if Shared.Clothing[job.name] == nil then lib.notify({ title = 'Mikey\'s EUP 1.3', description = 'Er is voor deze baan momenteel geen kleding beschikbaar of deze is nog niet ingesteld.', iconAnimation = 'beatFade', duration = 7500, type = 'error' }) return diff --git a/shared/main.lua b/shared/main.lua index 1b69244..d90e343 100644 --- a/shared/main.lua +++ b/shared/main.lua @@ -11,15 +11,10 @@ Shared.Army = 'defensie' -- done Shared.SpecialForces = 'dsi' -- done -- Frameworks -Shared.Framework = 'qb-core' -- 'qb-core' or 'esx' or 'standalone' +Shared.Framework = 'esx' -- 'qb-core' or 'esx' or 'standalone' Shared.Clothing = {} if Shared.Framework == 'qb-core' then QBCore = exports['qb-core']:GetCoreObject() -end - -if Shared.Framework == 'esx' then - ESX = nil - TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) end \ No newline at end of file