Lots of changes
* Add optional offset for some anims (like sitting) * Fix int/vw chat check not working * Disable ambience utils for now * Add ped stop anim util * Fix enter veh messages * Fix radio stream not stopping when exiting vehicle * Fix job items bugging out * Don't save job equipment items * Switch to inactive item slot when going on/off duty * Fix gotospawn not working with int/vw * Added anims for offset use * Added element ID & syncer utils * Fixed wrong job name being shown when setting job vehicle rank * Added anim move type constants * Added element collision net events * Added is any GUI active util * Fixed showing player list when a GUI is active
This commit is contained in:
@@ -437,6 +437,7 @@ function startWorking(client) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switchPlayerActiveHotBarSlot(client, -1);
|
||||
getPlayerCurrentSubAccount(client).skin = getPlayerSkin(client);
|
||||
storePlayerItemsInJobLocker(client);
|
||||
messagePlayerInfo(client, "Your personal items have been stored in your locker while you work");
|
||||
@@ -516,11 +517,14 @@ function givePlayerJobEquipment(client, equipmentId) {
|
||||
}
|
||||
let itemId = createItem(getItemTypeIndexFromDatabaseId(getJobData(jobId).equipment[equipmentId].items[i].itemType), value, VRR_ITEM_OWNER_PLAYER, getPlayerCurrentSubAccount(client).databaseId);
|
||||
getItemData(itemId).needsSaved = false;
|
||||
getItemData(itemId).databaseId = -1; // Make sure it doesnt save
|
||||
let freeSlot = getPlayerFirstEmptyHotBarSlot(client);
|
||||
getPlayerData(client).hotBarItems[freeSlot] = itemId;
|
||||
getPlayerData(client).jobEquipmentCache.push(itemId);
|
||||
updatePlayerHotBar(client);
|
||||
}
|
||||
|
||||
switchPlayerActiveHotBarSlot(client, -1);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user