I need a function that checks whether the local player is currently spawned or not.
local function isPlayerSpawned()
return isCharOnFoot(PLAYER_PED) or isCharInAnyCar(PLAYER_PED)
end
and
sampIsLocalPlayerSpawned()
don't work correctly, any advice or snippets would be helpful 😁