* 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
74 lines
2.2 KiB
JavaScript
74 lines
2.2 KiB
JavaScript
// ===========================================================================
|
|
// Vortrex's Roleplay Resource
|
|
// https://github.com/VortrexFTW/gtac_roleplay
|
|
// ===========================================================================
|
|
// FILE: const.js
|
|
// DESC: Provides constants
|
|
// TYPE: Shared (JavaScript)
|
|
// ===========================================================================
|
|
|
|
// Label Types
|
|
const VRR_LABEL_JOB = 1;
|
|
const VRR_LABEL_BUSINESS = 2;
|
|
const VRR_LABEL_HOUSE = 3;
|
|
const VRR_LABEL_EXIT = 4;
|
|
|
|
// Log Levels
|
|
const LOG_ALL = -1;
|
|
const LOG_NONE = 0;
|
|
const LOG_INFO = 1;
|
|
const LOG_WARN = 2;
|
|
const LOG_ERROR = 4;
|
|
const LOG_VERBOSE = 8;
|
|
const LOG_DEBUG = 16;
|
|
|
|
// Weapon Damage Event Types
|
|
const VRR_WEAPON_DAMAGE_EVENT_NONE = 0;
|
|
const VRR_WEAPON_DAMAGE_EVENT_NORMAL = 1;
|
|
const VRR_WEAPON_DAMAGE_EVENT_TAZER = 2;
|
|
const VRR_WEAPON_DAMAGE_EVENT_EXTINGUISH = 3;
|
|
const VRR_WEAPON_DAMAGE_EVENT_MACE = 4;
|
|
|
|
// Games
|
|
const VRR_GAME_GTA_III = 1;
|
|
const VRR_GAME_GTA_VC = 2;
|
|
const VRR_GAME_GTA_SA = 3;
|
|
const VRR_GAME_GTA_IV = 4;
|
|
const VRR_GAME_GTA_V = 50;
|
|
const VRR_GAME_MAFIA_ONE = 100;
|
|
const VRR_GAME_MAFIA_TWO = 102;
|
|
const VRR_GAME_MAFIA_THREE = 102;
|
|
const VRR_GAME_MAFIA_ONE_DE = 103;
|
|
|
|
// Key States
|
|
const VRR_KEYSTATE_NONE = 0;
|
|
const VRR_KEYSTATE_UP = 1;
|
|
const VRR_KEYSTATE_DOWN = 2;
|
|
const VRR_KEYSTATE_HOLDSHORT = 3;
|
|
const VRR_KEYSTATE_HOLDLONG = 4;
|
|
|
|
// Business Label Info Types
|
|
const VRR_BIZLABEL_INFO_NONE = 0;
|
|
const VRR_BIZLABEL_INFO_BUY = 1;
|
|
const VRR_BIZLABEL_INFO_ENTER = 2;
|
|
const VRR_BIZLABEL_INFO_ENTERVEHICLE = 3;
|
|
const VRR_BIZLABEL_INFO_REFUEL = 4;
|
|
const VRR_BIZLABEL_INFO_REPAIR = 5;
|
|
|
|
// Animation Types
|
|
const VRR_ANIMTYPE_NONE = 0;
|
|
const VRR_ANIMTYPE_ADD = 1;
|
|
const VRR_ANIMTYPE_BLEND = 2;
|
|
const VRR_ANIMTYPE_SHARED = 3; // Forces this animation to play in sync with another ped's mirrored anim (handshake, kiss, gang signs, etc)
|
|
const VRR_ANIMTYPE_SPECIALACTION = 4; // This animtype uses a special action (only in SA)
|
|
|
|
// Multiplayer Modifications
|
|
const VRR_MPMOD_NONE = 0;
|
|
const VRR_MPMOD_GTAC = 1;
|
|
const VRR_MPMOD_MAFIAC = 2;
|
|
|
|
// Business/House Game Script States
|
|
const VRR_GAMESCRIPT_NONE = 0;
|
|
const VRR_GAMESCRIPT_DENY = 1;
|
|
const VRR_GAMESCRIPT_ALLOW = 2;
|
|
const VRR_GAMESCRIPT_FORCE = 3; |