Fix spawn check util
This commit is contained in:
@@ -121,7 +121,7 @@ function getPlayerVehicleSeat(client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function isPlayerSpawned(client) {
|
function isPlayerSpawned(client) {
|
||||||
return (client.player != null);
|
return client.player.isType(ELEMENT_PLAYER);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user