cui_character
cui_character copied to clipboard
New functions interfering with Config.StandAlone=True option
line39: function PreparePlayer() -- if ESX.GetConfig().Multichar then -- isPlayerReady = true -- return -- end
line286: -- if ESX.GetConfig().Multichar then -- RegisterNetEvent('esx_multicharacter:SetupUI') -- AddEventHandler('esx_multicharacter:SetupUI', function(data) -- if next(data) == nil or (data.current and data.current.new) then -- firstCharacter = true -- else -- firstCharacter = false -- end -- end) -- end
The commented out portions throw error if Config.StandAlone=True as ESX is set as a null value and it cant be indexed. If I comment out as above cui menu opens. Kindly fix.