Client · JavaScript & Lua

GTA V Controls natives (PAD)

Player input: reading and disabling control actions, vibration, look inversion.

The 50 natives of the game’s PAD namespace, as LS:MP client scripts call them: global functions with the same arguments in JavaScript and in Lua. Each one has its own page, with its signature, a call in both languages, its parameters and what it returns.

NativeGame nameHash
isControlEnabledIS_CONTROL_ENABLED0x1CEA6BFDF248E5D9
isControlPressedIS_CONTROL_PRESSED0xF3A21BCD95725A4A
isControlReleasedIS_CONTROL_RELEASED0x648EE3E7F38877DD
isControlJustPressedIS_CONTROL_JUST_PRESSED0x580417101DDB492F
isControlJustReleasedIS_CONTROL_JUST_RELEASED0x50F940259D3841E6
isControlHeldDownNot in this build_IS_CONTROL_HELD_DOWN0xE9CB8C56E90D5079
getControlValueGET_CONTROL_VALUE0xD95E79E8686D2C27
getControlNormalGET_CONTROL_NORMAL0xEC3C9B8D5327B563
setUseAdjustedMouseCoordsSET_USE_ADJUSTED_MOUSE_COORDS0x5B73C77D9EB66E24
getControlUnboundNormalGET_CONTROL_UNBOUND_NORMAL0x5B84D09CEC5209C5
setControlValueNextFrameSET_CONTROL_VALUE_NEXT_FRAME0xE8A25867FBA3B05E
isDisabledControlPressedIS_DISABLED_CONTROL_PRESSED0xE2587F8CBBD87B1D
isDisabledControlReleasedIS_DISABLED_CONTROL_RELEASED0xFB6C4072E9A32E92
isDisabledControlJustPressedIS_DISABLED_CONTROL_JUST_PRESSED0x91AEF906BCA88877
isDisabledControlJustReleasedIS_DISABLED_CONTROL_JUST_RELEASED0x305C8DCD79DA8B0F
getDisabledControlNormalGET_DISABLED_CONTROL_NORMAL0x11E65974A982637C
getDisabledControlUnboundNormalGET_DISABLED_CONTROL_UNBOUND_NORMAL0x4F8A26A890FD62FB
getControlHowLongAgoGET_CONTROL_HOW_LONG_AGO0xD7D22F5592AED8BA
isUsingKeyboardAndMouseIS_USING_KEYBOARD_AND_MOUSE0xA571D46727E2B718
isUsingCursorIS_USING_CURSOR0x13337B38DB572509
setCursorPositionSET_CURSOR_POSITION0xFC695459D4D0E219
isUsingRemotePlayIS_USING_REMOTE_PLAY0x23F09EADC01449D6
haveControlsChangedHAVE_CONTROLS_CHANGED0x6CD79468A1E595C6
getControlInstructionalButtonsStringGET_CONTROL_INSTRUCTIONAL_BUTTONS_STRING0x0499D7B09FC9B407
getControlGroupInstructionalButtonsStringGET_CONTROL_GROUP_INSTRUCTIONAL_BUTTONS_STRING0x80C2FD58D720C801
setControlLightEffectColorSET_CONTROL_LIGHT_EFFECT_COLOR0x8290252FFF36ACB5
clearControlLightEffectCLEAR_CONTROL_LIGHT_EFFECT0xCB0360EFEFB2580D
setControlShakeSET_CONTROL_SHAKE0x48B3886C1358D0D5
setControlTriggerShakeSET_CONTROL_TRIGGER_SHAKE0x14D29BB12D47F68C
stopControlShakeSTOP_CONTROL_SHAKE0x38C16A305E8CDC8D
setControlShakeSuppressedIdSET_CONTROL_SHAKE_SUPPRESSED_ID0xF239400E16C23E08
clearControlShakeSuppressedIdCLEAR_CONTROL_SHAKE_SUPPRESSED_ID0xA0CEFCEA390AAB9B
isLookInvertedIS_LOOK_INVERTED0x77B612531280010D
isMouseLookInvertedIS_MOUSE_LOOK_INVERTED0xE1615EC03B3BB4FD
getLocalPlayerAimStateGET_LOCAL_PLAYER_AIM_STATE0xBB41AFBBBC0A0287
getLocalPlayerGamepadAimStateGET_LOCAL_PLAYER_GAMEPAD_AIM_STATE0x59B9A7AF4C95133C
getIsUsingAlternateHandbrakeGET_IS_USING_ALTERNATE_HANDBRAKE0x25AAA32BDC98F2A3
getIsUsingAlternateDrivebyGET_IS_USING_ALTERNATE_DRIVEBY0x0F70731BACCFBB96
getAllowMovementWhileZoomedGET_ALLOW_MOVEMENT_WHILE_ZOOMED0xFC859E2374407556
setPlayerpadShakesWhenControllerDisabledSET_PLAYERPAD_SHAKES_WHEN_CONTROLLER_DISABLED0x798FDEB5B1575088
setInputExclusiveSET_INPUT_EXCLUSIVE0xEDE476E5EE29EDB1
disableControlActionDISABLE_CONTROL_ACTION0xFE99B66D079CF6BC
enableControlActionENABLE_CONTROL_ACTION0x351220255D64C155
disableAllControlActionsDISABLE_ALL_CONTROL_ACTIONS0x5F4B6931816E599B
enableAllControlActionsENABLE_ALL_CONTROL_ACTIONS0xA5FFE9B05F199DE7
initPcScriptedControlsBlockedINIT_PC_SCRIPTED_CONTROLS0x3D42B92563939375
switchPcScriptedControlsBlockedSWITCH_PC_SCRIPTED_CONTROLS0x4683149ED1DDE7A1
shutdownPcScriptedControlsBlockedSHUTDOWN_PC_SCRIPTED_CONTROLS0x643ED62D5EA3BEBD
allowAlternativeScriptControlsLayoutALLOW_ALTERNATIVE_SCRIPT_CONTROLS_LAYOUT0x7F4724035FDCA1DD
getGamepadTypeNot in this build_GET_GAMEPAD_TYPE0x18E474F40EF05F10

Other namespaces

Built-in25Script VM basics: timers, maths helpers, thread control.App data17Data blocks shared with the game's companion apps.Audio280Sounds, speech, music, radio, audio scenes and scripted conversations.Script brains11Script brains attached to objects, peds and world points.Camera248Scripted cameras, the gameplay camera, shakes, cinematic and hint cameras.Clock16In-game time and date, and the real-world clock.Cutscenes56Loading, playing and controlling cutscenes.Data files57Cloud data files and their dictionary and array structures.Decorators12Typed key/value decorators attached to entities.DLC14Presence and state of downloadable content.Entity189Anything placed in the world: position, rotation, health, attachment, collision, visibility.Events13AI and shocking events: adding, blocking and suppressing them.Shop metadata49Shop items, outfits, tattoos and weapon data declared by DLC metadata.Fire19Script fires and explosions.Graphics403Drawing: markers, lines, sprites, lights, particle effects, scaleform movies, timecycles and screen effects.HUD518Text, help and notifications, blips and the minimap, pause-menu and frontend components.IIS1The initial interactive screen shown when the game starts.Interior45Interiors, rooms and entity sets.Item sets9Script-side collections of entities and other items.Landing page4The game's landing page.Lobby8Legacy lobby state of the game's own multiplayer menu.Localization3Language and region of the game.Misc345Everything without a better home: weather, ground and area checks, maths, hashing, strings, game flow.Mobile phone25The in-game phone prop: position, rotation, scale and camera.Money357The game's online economy: earn and spend records, balances.Net shopping42The game's online catalog, baskets and transactions.Network883The game's own network layer: sessions, players, network ids, entity control, cloud content.Object166Props: creation, doors, pickups, breakable and animated objects.Pathfinding60Road nodes, the navigation mesh and GPS routes.Ped614Characters: creation, appearance, health, groups, relationships, ragdoll, config flags.Physics49Ropes, and the physics state of entities.Player250The local player: wanted level, abilities, targeting, control, model, invincibility.Recording17Rockstar Editor recording control.Replay6Rockstar Editor replay and clip state.Save migration8Transfer of a saved game between platforms and accounts.Script38Game script threads and script events.Security3Tamper protection of script variables.Shape tests11Raycasts and the other world probes.Social Club84Social Club inbox, profanity checks, licence plates and presence.Stats338Player statistics, leaderboards and telemetry.Streaming121Loading assets: models, animation and texture dictionaries, particle assets, IPLs, focus.Tasks313AI tasks: movement, combat, animations, driving, scenarios and sequences.Vehicle774Vehicles: creation, mods, colours, doors, damage, handling flags.Water12Water height, waves and water probes.Weapon123Weapons, ammunition, components and weapon objects.Zones9Map zones and population schedules.

Search them in the interactive natives reference