We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
player_api.set_model
1 parent 2c1d9e1 commit 8d60e85Copy full SHA for 8d60e85
mods/player_api/api.lua
@@ -67,7 +67,11 @@ function player_api.set_model(player, model_name)
67
if player_data.model == model_name then
68
return
69
end
70
+ -- Update data
71
player_data.model = model_name
72
+ -- Clear animation data as the model has changed
73
+ -- (required for setting the `stand` animation not to be a no-op)
74
+ player_data.animation, player_data.animation_speed = nil, nil
75
76
local model = models[model_name]
77
if model then
0 commit comments