Fix player position util

This commit is contained in:
Vortrex
2020-12-21 22:53:45 -06:00
parent ac97d70420
commit a4200fad7b

View File

@@ -73,7 +73,9 @@ function getServerGame() {
// ---------------------------------------------------------------------------
function getPlayerPosition(client) {
return client.player.position;
if(client.player != null) {
return client.player.position;
}
}
// ---------------------------------------------------------------------------
@@ -94,7 +96,6 @@ function setPlayerHeading(client, heading) {
return triggerNetworkEvent("ag.heading", client, heading);
}
// ---------------------------------------------------------------------------
function getPlayerVehicle(client) {