Skip to content

Constants

Name
Weapon Unarmed 0 … Pistol 22, Shotgun 25, MP5 29, M4 31, Sniper 34, RocketLauncher 35, Minigun 38, Parachute 46, ...
BodyPart Torso 3, Groin 4, LeftArm 5, RightArm 6, LeftLeg 7, RightLeg 8, Head 9.
Stat Stamina, Muscle, MaxHealth (569 is 100 health), weapon skills (PistolSkill, ... 1000 = hitman), DrivingSkill, FlyingSkill, BikeSkill, LungCapacity, ...
RadioStation PlaybackFM 1 … WCTR 11, Off 13.
Color Message colours: White, Grey, Red, Green, Blue, Yellow, Orange.
Weather ExtraSunnyLA 0 … ExtraColours2 22, GameCycle -1.
GarageType PayNSpray, SafehouseGanton, ImpoundLS, ...
ZoneAttribute Cull zone bits: NoRain, CameraCloseIn, NoPolice, FewerPeds, ...
AudioZone AmmuNation, Bar, Casino, Gym, StripClub, ...
DoorDamage, TyreDamage, PanelDamage Vehicle damage states.
GameSound The game's own frontend sounds, for server.audio.playGame: PickupWeapon, PickupMoney, PickupHealth, PickupArmour, CarRespray, CarNoCash, CarIsHot, TimerCount, ...
GameTextStyle hud.gameText styles 0-6: Middle, BottomRight, WhiteMiddle, MiddleSmaller, MiddleSmallerHigher, WhiteMiddleSmaller, LightBlueTop.
ComponentSlot Tuning slots: Spoiler, Hood, Roof, SideSkirt, Lamps, Nitro, Exhaust, Wheels, Stereo, Hydraulics, FrontBumper, RearBumper, VentRight, VentLeft.
Bone attachObject bones (SA-MP's 1-18): Spine, Head, RightHand, LeftHand, Neck, Jaw...
ExplosionType createExplosion types: Grenade, Molotov, Rocket, Car, Small, Tiny...
MaterialSize, MaterialTextAlign object.setMaterialText canvases (Size32x32 … Size512x512) and Left, Center, Right.
FightingStyle Normal, Boxing, KungFu, KneeHead, GrabKick, Elbow.
Key The game's buttons, for playerKeys and player.keys: Sprint (accelerate in a vehicle), Jump (brake), EnterExit, Fire, Action (secondary fire), Aim (handbrake), Crouch (horn), LookBehind (sub-mission), LookLeft, LookRight, GroupForward, GroupBack, Yes, No, Walk. With keyPressed(keys, old, key) and keyReleased(keys, old, key).
Crime The game's crimes, for player.playCrimeReport: FireWeapon, DamagedPed, FireWeaponHitPed, DamageCar, DamageCopCar, CarSteal, KillPedWithCar, SetPedOnFire, Explosion, HitCar, AimGun...
VoiceContext The game's voice lines for ped.say(): Bump, Chat, ShopBuy, ShopSell, GenericInsultMale, PconvGreetMale, PainHigh...

Your editor's autocomplete lists every value; they're plain objects (Weapon.M4 === 31).