Lots of fixes + clans
* Added clans * Fixed interior exit labels * Disabled nametags on games without 3D label support * Fixed mouse cursor toggle command * Fixed SA fight-style not being applied * Added manageRanks clan permission bitflag * Added interior lights toggle * Fixed clan chat * Added real-time support with optional timezone offset * Added lots of JSDoc stuff * Added command for managers to set server GUI colour * Added GeoIP command for admins * Added command for admins to force an immediate payday * Added admins gotospawn command * Added return player command for teleported players * Added pizza delivery job const * Fixed biz/house set pickup & interior type * Fixed inventory showing ammo count for melee weapons * Fixed SA using wrong pickup types * Fixed char select screen breaking when in a clan * Added +/- symbol util for number display * Added get current timestamp for timezone offset util * Fixed vehicle owner ID being set wrong for job veh
This commit is contained in:
@@ -143,7 +143,6 @@ function saveVehicleToDatabase(vehicleDataId) {
|
||||
["veh_extra11", tempVehicleData.extras[10]],
|
||||
["veh_extra12", tempVehicleData.extras[11]],
|
||||
["veh_extra13", tempVehicleData.extras[12]],
|
||||
["veh_locked", intToBool(tempVehicleData.locked)],
|
||||
["veh_engine", intToBool(tempVehicleData.engine)],
|
||||
["veh_lights", intToBool(tempVehicleData.lights)],
|
||||
["veh_health", toInteger(tempVehicleData.health)],
|
||||
@@ -353,11 +352,9 @@ function deleteVehicleCommand(command, params, client) {
|
||||
|
||||
quickDatabaseQuery(`DELETE FROM veh_main WHERE veh_id = ${getVehicleData(vehicle).databaseId}`);
|
||||
|
||||
getServerData().vehicles[dataIndex] = null;
|
||||
getServerData().vehicles.splice(dataIndex, 1);
|
||||
destroyElement(vehicle);
|
||||
|
||||
getVehicleData(vehicle).needsSaved = true;
|
||||
|
||||
messagePlayerSuccess(client, `The ${vehicleName} has been deleted!`);
|
||||
}
|
||||
|
||||
@@ -507,7 +504,7 @@ function vehicleRepairCommand(command, params, client) {
|
||||
|
||||
getVehicleData(vehicle).needsSaved = true;
|
||||
|
||||
meActionToNearbyPlayers(client, `repairs the ${getVehicleName(vehicle)}!`);
|
||||
meActionToNearbyPlayers(client, `repairs the ${getVehicleName(vehicle)}`);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
@@ -720,7 +717,7 @@ function setVehicleJobCommand(command, params, client) {
|
||||
//}
|
||||
|
||||
getVehicleData(vehicle).ownerType = VRR_VEHOWNER_JOB;
|
||||
getVehicleData(vehicle).ownerId = jobId;
|
||||
getVehicleData(vehicle).ownerId = getJobData(jobId).databaseId;
|
||||
|
||||
getVehicleData(vehicle).needsSaved = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user