Files
GTA4RP/scripts/shared/const.js
Vortrex acfc788371 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
2021-09-13 07:22:00 -05:00

81 lines
2.4 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)
// Animation Move Types
const VRR_ANIMMOVE_NONE = 0;
const VRR_ANIMMOVE_FORWARD = 1;
const VRR_ANIMMOVE_BACK = 2;
const VRR_ANIMMOVE_LEFT = 3;
const VRR_ANIMMOVE_RIGHT = 4;
// 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;