mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
fix(client/main): Check if skin is defined, else if skin does not have a second key
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ if ESX.GetConfig().Multichar then
|
||||
end
|
||||
|
||||
LoadPed = function(isNew)
|
||||
if isNew or not Characters[Spawned].skin[2] then
|
||||
if isNew or not Characters[Spawned].skin or not Characters[Spawned].skin[2] then
|
||||
local isMale, sex = true, 0
|
||||
if Characters[Spawned].sex == 'Female' then isMale, sex = false, 1 end
|
||||
TriggerEvent('skinchanger:loadDefaultModel', isMale, function()
|
||||
|
||||
Reference in New Issue
Block a user