death fix maybe
This commit is contained in:
parent
087e21e587
commit
0f5d104431
3
.gitignore
vendored
3
.gitignore
vendored
@ -86,3 +86,6 @@ $RECYCLE.BIN/
|
|||||||
|
|
||||||
# Windows shortcuts
|
# Windows shortcuts
|
||||||
*.lnk
|
*.lnk
|
||||||
|
addon.json
|
||||||
|
Upload.cmd
|
||||||
|
workship_id.cmd
|
@ -281,13 +281,15 @@ end )
|
|||||||
|
|
||||||
hook.Add( "PlayerSetHandsModel", "lf_fe_hands_select2", function( ply, ent )
|
hook.Add( "PlayerSetHandsModel", "lf_fe_hands_select2", function( ply, ent )
|
||||||
if ply:GetInfo( "cl_playerhands" ) and ply:GetInfo( "cl_playerhands" ) != "" then
|
if ply:GetInfo( "cl_playerhands" ) and ply:GetInfo( "cl_playerhands" ) != "" then
|
||||||
local info = player_manager.TranslatePlayerHands(ply:GetInfo( "cl_playerhands" ))
|
if ent then
|
||||||
|
local info = player_manager.TranslatePlayerHands(ply:GetInfo( "cl_playerhands" ))
|
||||||
|
|
||||||
timer.Simple(0.5, function()
|
timer.Simple(0.2, function()
|
||||||
ent:SetModel( info.model )
|
ent:SetModel( info.model )
|
||||||
ent:SetSkin( info.skin )
|
ent:SetSkin( info.skin )
|
||||||
ent:SetBodyGroups( info.body )
|
ent:SetBodyGroups( info.body )
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end )
|
end )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user