Fix job type

This commit is contained in:
Vortrex
2023-02-22 05:23:46 -06:00
parent 5401bb33c2
commit fcdf8542d6
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
// TYPE: Client (JavaScript)
// ===========================================================================
let localPlayerJobType = 0;
let localPlayerJobType = -1;
let localPlayerWorking = false;
let jobRouteLocationBlip = null;
let jobRouteLocationSphere = null;

View File

@@ -292,7 +292,7 @@ function renderJobLabel(name, position, jobType) {
text = getLocaleString("StartWorkLabel", "/startwork");
}
} else {
if (localPlayerJobType == 0) {
if (localPlayerJobType == -1) {
text = getLocaleString("TakeJobLabel", "/takejob");
} else {
text = getLocaleString("NotYourJobLabel", "/quitjob");