Use game ID util

This commit is contained in:
Vortrex
2022-05-02 15:26:30 -05:00
parent 52274965a3
commit fb98ceeaa7
3 changed files with 14 additions and 14 deletions

View File

@@ -52,7 +52,7 @@ function setLocalPlayerWorkingState(tempWorking) {
function showJobRouteLocation(position, colour) {
logToConsole(LOG_DEBUG, `[VRR.Job] Showing job route location`);
if(getMultiplayerMod() == VRR_MPMOD_GTAC) {
if(game.game == VRR_GAME_GTA_SA) {
if(getGame() == VRR_GAME_GTA_SA) {
// Server-side spheres don't show in GTA SA for some reason.
jobRouteLocationSphere = game.createPickup(1318, position, 1);
} else {