Hello,
I’m working on a roleplay framework and recently I was trying to change a player’s model. I tried using the SetPlayerModel()
native function, and it worked for all models but for mp_m_freemode_01
and mp_f_freemode_01
which is exactly what I need. So when I call the function the player becomes invisible and only the shoes’ shadows can be slightly seen. In addition, no errors are printed to the F8 console.
To be more clear, this is what I tried using (which didn’t work):
local model = GetHashKey("mp_m_freemode_01")
while not HasModelLoaded(model) do
RequestModel(model)
Citizen.Wait(0)
end
if HasModelLoaded(model) then
SetPlayerModel(PlayerId(), model)
else
print("Couldn't load skin!")
end
Any help would be highly appreciated ^^