Client-side constants

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

These are a list of constants loaded into Squirrel. These an be used anywhere in a script and resolve to a predetermined value. For example, in Liberty Unleashed VEH_LANDSTALKER will resolve to 90.

Contents

Bindable Keys

Arrow Keys

  • KEY_LEFT
  • KEY_UP
  • KEY_RIGHT
  • KEY_DOWN

Numeric Keys

  • KEY_NUMPAD0
  • KEY_NUMPAD1
  • KEY_NUMPAD2
  • KEY_NUMPAD3
  • KEY_NUMPAD4
  • KEY_NUMPAD5
  • KEY_NUMPAD6
  • KEY_NUMPAD7
  • KEY_NUMPAD8
  • KEY_NUMPAD9
  • KEY_MULTIPLY
  • KEY_ADD
  • KEY_SEPARATOR
  • KEY_SUBTRACT
  • KEY_DECIMAL
  • KEY_DIVIDE

Function Keys

  • KEY_F1
  • KEY_F2
  • KEY_F3
  • KEY_F4
  • KEY_F5
  • KEY_F6
  • KEY_F7
  • KEY_F8
  • KEY_F9
  • KEY_F10
  • KEY_F11
  • KEY_F12

Misc Keys

  • KEY_BACK
  • KEY_TAB
  • KEY_RETURN
  • KEY_SHIFT
  • KEY_CONTROL
  • KEY_CAPS
  • KEY_PAUSE
  • KEY_ESCAPE
  • KEY_SPACE
  • KEY_END
  • KEY_HOME
  • KEY_LEFTWIN
  • KEY_RIGHTWIN
  • KEY_NUMLOCK
  • KEY_SCROLL
  • KEY_PRINT
  • KEY_INSERT
  • KEY_DELETE

Body Parts

  • BODYPART_BODY
  • BODYPART_HEAD
  • BODYPART_LEFTARM
  • BODYPART_RIGHTARM
  • BODYPART_LEFTLEG
  • BODYPART_RIGHTLEG

Game Limits

  • MAX_PLAYERS
  • MAX_VEHICLES
  • MAX_OBJECTS
  • MAX_PICKUPS
  • MAX_CHECKPOINTS
  • MAX_CLIENTCHECKPOINTS
  • MAX_SPHERES
  • MAX_CLIENTSPHERES
  • MAX_SPAWNCLASSES
  • MAX_SPAWNCLASS_WEAPONS
  • MAX_SOUNDS
  • MAX_SPRITES

GTA Keys

  • KEY_ONFOOT_LOOKBEHIND
  • KEY_ONFOOT_FIRE
  • KEY_ONFOOT_SPRINT
  • KEY_ONFOOT_ENTERVEHICLE
  • KEY_ONFOOT_JUMP
  • KEY_ONFOOT_RIGHT
  • KEY_ONFOOT_LEFT
  • KEY_ONFOOT_BACKWARD
  • KEY_ONFOOT_FORWARD
  • KEY_ONFOOT_AIM
  • KEY_INCAR_HORN
  • KEY_INCAR_FIRE
  • KEY_INCAR_FORWARD
  • KEY_INCAR_EXITVEHICLE
  • KEY_INCAR_BACKWARD
  • KEY_INCAR_RIGHT
  • KEY_INCAR_LEFT
  • KEY_INCAR_HANDBRAKE
  • KEY_INCAR_RADIO
  • KEY_INCAR_LOOKRIGHT
  • KEY_INCAR_LOOKLEFT

GUI Constants

GUI Align Settings

  • ALIGN_TOP_LEFT
  • ALIGN_MIDDLE_LEFT
  • ALIGN_BOTTOM_LEFT
  • ALIGN_TOP_CENTER
  • ALIGN_MIDDLE_CENTER
  • ALIGN_BOTTOM_CENTER
  • ALIGN_TOP_RIGHT
  • ALIGN_MIDDLE_RIGHT
  • ALIGN_BOTTOM_RIGHT

GUI Flags

  • FLAG_NONE
  • FLAG_COLOURED
  • FLAG_SHADOW

GUI Font Tags

  • TAG_NONE
  • TAG_BOLD
  • TAG_ITALICS
  • TAG_UNDERLINE
  • TAG_STRIKEOUT

GUI Metrics

  • ScreenWidth
  • ScreenHeight

HUD Items

  • HUD_ARMOUR
  • HUD_CLOCK
  • HUD_HEALTH
  • HUD_MONEY
  • HUD_RADAR
  • HUD_WANTED
  • HUD_WEAPON

Marker Types

  • MARKER_TYPE_BOTH
  • MARKER_TYPE_PLAYER
  • MARKER_TYPE_VEHICLE

Misc Constants

  • INVALID_PLAYER_ID
  • INVALID_TEAM_ID
  • INVALID_TRAIN_ID
  • SHARED_VIRTUAL_WORLD

Part Reasons

  • PARTREASON_DISCONNECTED
  • PARTREASON_CRASHED
  • PARTREASON_TIMEOUT
  • PARTREASON_KICKED
  • PARTREASON_BANNED

Train Stations

The following constants are only present in Liberty Unleashed.

  • STATION_STMARKS
  • STATION_HEPBURN
  • STATION_CHINATOWN
  • STATION_PORTLAND
  • STATION_ROCKFORD
  • STATION_TERMINAL
  • STATION_STAUNTON

Vehicle Addons

  • VEHADDON_NONE
  • VEHADDON_HOSE
  • VEHADDON_CANNON
  • VEHADDON_BOATCANNON

Vehicle Light States

  • LIGHTSTATE_AUTO
  • LIGHTSTATE_OFF
  • LIGHTSTATE_ON

Vehicle Models

Liberty Unleashed

  • VEH_LANSTALKER
  • VEH_IDAHO
  • VEH_STINGER
  • VEH_LINERUNNER
  • VEH_PERENIAL
  • VEH_SENTINEL
  • VEH_PATRIOT
  • VEH_FIRETRUCK
  • VEH_TRASHMASTER
  • VEH_STRETCH
  • VEH_MANANA
  • VEH_INFERNUS
  • VEH_BLISTA
  • VEH_PONY
  • VEH_MULE
  • VEH_CHEETAH
  • VEH_AMBULANCE
  • VEH_FBICAR
  • VEH_MOONBEAM
  • VEH_ESPERANTO
  • VEH_TAXI
  • VEH_KURUMA
  • VEH_BOBCAT
  • VEH_MRWHOOPEE
  • VEH_BFINJECTION
  • VEH_CORPSE
  • VEH_POLICE
  • VEH_ENFORCER
  • VEH_SECURICAR
  • VEH_BANSHEE
  • VEH_PREDATOR
  • VEH_BUS
  • VEH_RHINO
  • VEH_BARRACKS
  • VEH_TRAIN
  • VEH_CHOPPER
  • VEH_DODO
  • VEH_COACH
  • VEH_CABBIE
  • VEH_STALLION
  • VEH_RUMPO
  • VEH_RCBANDIT
  • VEH_BELLYUP
  • VEH_MRWONGS
  • VEH_MAFIASENTINEL
  • VEH_YARDIELOBO
  • VEH_YAKUZA
  • VEH_DIABLOS
  • VEH_COLUMBIAN
  • VEH_HOODS
  • VEH_AIRTRAIN
  • VEH_DEADDODO
  • VEH_SPEEDER
  • VEH_REEFER
  • VEH_PANLANTIC
  • VEH_FLATBED
  • VEH_YANKEE
  • VEH_ESCAPE
  • VEH_BORGNINE
  • VEH_TOYZ
  • VEH_GHOST
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox