File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
[core]/es_extended/client/modules Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -351,4 +351,25 @@ function Adjustments:Load()
351351 self :WantedLevel ()
352352 self :DisableRadio ()
353353 self :Multipliers ()
354+
355+ AddEventHandler (' esx:playerLoaded' , function (xPlayer , isNew , skin )
356+ self :ApplyPlayerStats ()
357+ end )
358+
359+ if not Config .PlayerStatsByGender .useCharacterData then
360+ AddEventHandler (' skinchanger:modelLoaded' , function ()
361+ self :ApplyPlayerStats ()
362+ end )
363+ end
364+
365+ AddEventHandler (' esx:onPlayerSpawn' , function ()
366+ self :ApplyPlayerStats ()
367+ end )
368+
369+ if Config .PlayerStatsByGender .enabled and Config .EnableDebug then
370+ print (' [^2adjustments^7] player stats by gender loaded' )
371+ print (' [^3adjustments^7] enabled: ' .. tostring (Config .PlayerStatsByGender .enabled ))
372+ print (' [^3adjustments^7] use character data: ' .. tostring (Config .PlayerStatsByGender .useCharacterData ))
373+ print (' [^3adjustments^7] debug mode: active' )
374+ end
354375end
You can’t perform that action at this time.
0 commit comments