this issue will not work if done before spawning player using spawnPlayer function
so make sure the player spawn
example:
addEventHandler("onPlayerJoin", root,
function()
setElementModel(source, 10) --will not work because the player did not spawn
spawnPlayer(source, 0, 0, 3)
end
)
addEventHandler("onPlayerJoin", root,
function()
spawnPlayer(source, 0, 0, 3)
setElementModel(source, 10) --it will work
end
)