Client · JavaScript & Lua

GTA V Object natives

Props: creation, doors, pickups, breakable and animated objects.

The 166 natives of the game’s OBJECT 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
createObjectCREATE_OBJECT0x509D5878EB39E842
createObjectNoOffsetCREATE_OBJECT_NO_OFFSET0x9A294B2138ABB884
deleteObjectDELETE_OBJECT0x539E0AE3E6634B9F
placeObjectOnGroundProperlyPLACE_OBJECT_ON_GROUND_PROPERLY0x58A850EAEE20FAA3
placeObjectOnGroundOrObjectProperlyPLACE_OBJECT_ON_GROUND_OR_OBJECT_PROPERLY0xD76EEEF746057FD6
rotateObjectROTATE_OBJECT0xAFE24E4D29249E4A
slideObjectSLIDE_OBJECT0x2FDFF4107B8C1147
setObjectTargettableSET_OBJECT_TARGETTABLE0x8A7391690F5AFD81
setObjectTargettableByPlayerNot in this build_SET_OBJECT_TARGETTABLE_BY_PLAYER0xB39F03368DB0CAA2
setObjectForceVehiclesToAvoidSET_OBJECT_FORCE_VEHICLES_TO_AVOID0x77F33F2CCF64B3AA
getClosestObjectOfTypeGET_CLOSEST_OBJECT_OF_TYPE0xE143FA2249364369
hasObjectBeenBrokenHAS_OBJECT_BEEN_BROKEN0x8ABFB70C49CC43E2
hasClosestObjectOfTypeBeenBrokenHAS_CLOSEST_OBJECT_OF_TYPE_BEEN_BROKEN0x761B0E69AC4D007E
hasClosestObjectOfTypeBeenCompletelyDestroyedHAS_CLOSEST_OBJECT_OF_TYPE_BEEN_COMPLETELY_DESTROYED0x46494A2475701343
getHasObjectBeenCompletelyDestroyedGET_HAS_OBJECT_BEEN_COMPLETELY_DESTROYED0x2542269291C6AC84
getOffsetFromCoordAndHeadingInWorldCoordsGET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS0x163E252DE035A133
getCoordsAndRotationOfClosestObjectOfTypeGET_COORDS_AND_ROTATION_OF_CLOSEST_OBJECT_OF_TYPE0x163F8B586BC95F2A
setStateOfClosestDoorOfTypeSET_STATE_OF_CLOSEST_DOOR_OF_TYPE0xF82D8F1926A02C3D
getStateOfClosestDoorOfTypeGET_STATE_OF_CLOSEST_DOOR_OF_TYPE0xEDC1A5B84AEF33FF
setLockedUnstreamedInDoorOfTypeSET_LOCKED_UNSTREAMED_IN_DOOR_OF_TYPE0x9B12F9A24FABEDB0
playObjectAutoStartAnimPLAY_OBJECT_AUTO_START_ANIM0x006E4B040ED37EC3
addDoorToSystemADD_DOOR_TO_SYSTEM0x6F8838D03D1DC226
removeDoorFromSystemREMOVE_DOOR_FROM_SYSTEM0x464D8E1427156FE4
doorSystemSetDoorStateDOOR_SYSTEM_SET_DOOR_STATE0x6BAB9442830C7F53
doorSystemGetDoorStateDOOR_SYSTEM_GET_DOOR_STATE0x160AA1B32F6139B8
doorSystemGetDoorPendingStateDOOR_SYSTEM_GET_DOOR_PENDING_STATE0x4BC2854478F3A749
doorSystemSetAutomaticRateDOOR_SYSTEM_SET_AUTOMATIC_RATE0x03C27E13B42A0E82
doorSystemSetAutomaticDistanceDOOR_SYSTEM_SET_AUTOMATIC_DISTANCE0x9BA001CB45CBF627
doorSystemSetOpenRatioDOOR_SYSTEM_SET_OPEN_RATIO0xB6E6FBA95C7324AC
doorSystemGetAutomaticDistanceDOOR_SYSTEM_GET_AUTOMATIC_DISTANCE0xE851471AEFC3374F
doorSystemGetOpenRatioDOOR_SYSTEM_GET_OPEN_RATIO0x65499865FCA6E5EC
doorSystemGetIsSpringRemovedNot in this buildDOOR_SYSTEM_GET_IS_SPRING_REMOVED0x8562FD8AB1E94D39
doorSystemSetSpringRemovedDOOR_SYSTEM_SET_SPRING_REMOVED0xC485E07E4F0B7958
doorSystemSetHoldOpenDOOR_SYSTEM_SET_HOLD_OPEN0xD9B71952F78A2640
doorSystemSetDoorOpenForRacesDOOR_SYSTEM_SET_DOOR_OPEN_FOR_RACES0xA85A21582451E951
isDoorRegisteredWithSystemIS_DOOR_REGISTERED_WITH_SYSTEM0xC153C43EA202C8C1
isDoorClosedIS_DOOR_CLOSED0xC531EE8A1145A149
openAllBarriersForRaceOPEN_ALL_BARRIERS_FOR_RACE0xC7F29CA00F46350E
closeAllBarriersForRaceCLOSE_ALL_BARRIERS_FOR_RACE0x701FDA1E82076BA4
doorSystemGetIsPhysicsLoadedDOOR_SYSTEM_GET_IS_PHYSICS_LOADED0xDF97CDD4FC08FD34
doorSystemFindExistingDoorDOOR_SYSTEM_FIND_EXISTING_DOOR0x589F80B325CC82C5
isGarageEmptyIS_GARAGE_EMPTY0x90E47239EA1980B8
isPlayerEntirelyInsideGarageIS_PLAYER_ENTIRELY_INSIDE_GARAGE0x024A60DEB0EA69F0
isPlayerPartiallyInsideGarageIS_PLAYER_PARTIALLY_INSIDE_GARAGE0x1761DC5D8471CBAA
areEntitiesEntirelyInsideGarageARE_ENTITIES_ENTIRELY_INSIDE_GARAGE0x85B6C850546FDDE2
isAnyEntityEntirelyInsideGarageIS_ANY_ENTITY_ENTIRELY_INSIDE_GARAGE0x673ED815D6E323B7
isObjectEntirelyInsideGarageIS_OBJECT_ENTIRELY_INSIDE_GARAGE0x372EF6699146A1E4
isObjectPartiallyInsideGarageIS_OBJECT_PARTIALLY_INSIDE_GARAGE0xF0EED5A6BC7B237A
clearGarageCLEAR_GARAGE0xDA05194260CDCDF9
clearObjectsInsideGarageCLEAR_OBJECTS_INSIDE_GARAGE0x190428512B240692
disableTidyingUpInGarageDISABLE_TIDYING_UP_IN_GARAGE0x659F9D71F52843F8
enableSavingInGarageENABLE_SAVING_IN_GARAGE0xF2E1A7133DD356A6
closeSafehouseGaragesCLOSE_SAFEHOUSE_GARAGES0x66A49D021870FE88
doesObjectOfTypeExistAtCoordsDOES_OBJECT_OF_TYPE_EXIST_AT_COORDS0xBFA48E2FF417213F
isPointInAngledAreaIS_POINT_IN_ANGLED_AREA0x2A70BAE8883E4C81
setObjectAllowLowLodBuoyancySET_OBJECT_ALLOW_LOW_LOD_BUOYANCY0x4D89D607CB3DD1D2
setObjectPhysicsParamsSET_OBJECT_PHYSICS_PARAMS0xF6DF6E90DE7DF90F
getObjectFragmentDamageHealthGET_OBJECT_FRAGMENT_DAMAGE_HEALTH0xB6FBFD079B8D0596
setActivateObjectPhysicsAsSoonAsItIsUnfrozenSET_ACTIVATE_OBJECT_PHYSICS_AS_SOON_AS_IT_IS_UNFROZEN0x406137F8EF90EAF5
isAnyObjectNearPointIS_ANY_OBJECT_NEAR_POINT0x397DC58FF00298D1
isObjectNearPointIS_OBJECT_NEAR_POINT0x8C90FE4B381BA60A
removeObjectHighDetailModelREMOVE_OBJECT_HIGH_DETAIL_MODEL0x4A39DB43E47CF3AA
breakObjectFragmentChildBREAK_OBJECT_FRAGMENT_CHILD0xE7E4C198B0185900
damageObjectFragmentChildDAMAGE_OBJECT_FRAGMENT_CHILD0xE05F6AEEFEB0BB02
fixObjectFragmentFIX_OBJECT_FRAGMENT0xF9C1681347C8BD15
trackObjectVisibilityTRACK_OBJECT_VISIBILITY0xB252BC036B525623
isObjectVisibleIS_OBJECT_VISIBLE0x8B32ACE6326A7546
setObjectIsSpecialGolfballSET_OBJECT_IS_SPECIAL_GOLFBALL0xC6033D32241F6FB5
setObjectTakesDamageFromCollidingWithBuildingsSET_OBJECT_TAKES_DAMAGE_FROM_COLLIDING_WITH_BUILDINGS0xEB6F1A9B5510A5D2
allowDamageEventsForNonNetworkedObjectsALLOW_DAMAGE_EVENTS_FOR_NON_NETWORKED_OBJECTS0xABDABF4E1EDECBFA
setCutscenesWeaponFlashlightOnThisFrameSET_CUTSCENES_WEAPON_FLASHLIGHT_ON_THIS_FRAME0xBCE595371A5FBAAF
getRayfireMapObjectGET_RAYFIRE_MAP_OBJECT0xB48FCED898292E52
setStateOfRayfireMapObjectSET_STATE_OF_RAYFIRE_MAP_OBJECT0x5C29F698D404C5E1
getStateOfRayfireMapObjectGET_STATE_OF_RAYFIRE_MAP_OBJECT0x899BA936634A322E
doesRayfireMapObjectExistDOES_RAYFIRE_MAP_OBJECT_EXIST0x52AF537A0C5B8AAD
getRayfireMapObjectAnimPhaseGET_RAYFIRE_MAP_OBJECT_ANIM_PHASE0x260EE4FDBDF4DB01
createPickupCREATE_PICKUP0xFBA08C503DD5FA58
createPickupRotateCREATE_PICKUP_ROTATE0x891804727E0A98B7
forcePickupRotateFaceUpFORCE_PICKUP_ROTATE_FACE_UP0x394CD08E31313C28
setCustomPickupWeaponHashSET_CUSTOM_PICKUP_WEAPON_HASH0x826D1EE4D1CAFC78
createAmbientPickupCREATE_AMBIENT_PICKUP0x673966A0C0FD7171
createNonNetworkedAmbientPickupCREATE_NON_NETWORKED_AMBIENT_PICKUP0x9C93764223E29C50
blockPlayersForAmbientPickupBLOCK_PLAYERS_FOR_AMBIENT_PICKUP0x1E3F1B1B891A2AAA
createPortablePickupCREATE_PORTABLE_PICKUP0x2EAF1FDB2FB55698
createNonNetworkedPortablePickupCREATE_NON_NETWORKED_PORTABLE_PICKUP0x125494B98A21AAF7
attachPortablePickupToPedATTACH_PORTABLE_PICKUP_TO_PED0x8DC39368BDD57755
detachPortablePickupFromPedDETACH_PORTABLE_PICKUP_FROM_PED0xCF463D1E9A0AECB1
forcePortablePickupLastAccessiblePositionSettingFORCE_PORTABLE_PICKUP_LAST_ACCESSIBLE_POSITION_SETTING0x5CE2E45A5CE2E45A
hidePortablePickupWhenDetachedHIDE_PORTABLE_PICKUP_WHEN_DETACHED0x867458251D47CCB2
setMaxNumPortablePickupsCarriedByPlayerSET_MAX_NUM_PORTABLE_PICKUPS_CARRIED_BY_PLAYER0x0BF3B3BD47D79C08
setLocalPlayerCanCollectPortablePickupsSET_LOCAL_PLAYER_CAN_COLLECT_PORTABLE_PICKUPS0x78857FC65CADB909
getSafePickupCoordsGET_SAFE_PICKUP_COORDS0x6E16BC2503FF1FF0
addExtendedPickupProbeAreaADD_EXTENDED_PICKUP_PROBE_AREA0xD4A7A435B3710D05
clearExtendedPickupProbeAreasCLEAR_EXTENDED_PICKUP_PROBE_AREAS0xB7C6D80FB371659A
getPickupCoordsGET_PICKUP_COORDS0x225B8B35C88029B3
suppressPickupSoundForPickupSUPPRESS_PICKUP_SOUND_FOR_PICKUP0x8DCA505A5C196F05
removeAllPickupsOfTypeREMOVE_ALL_PICKUPS_OF_TYPE0x27F9D613092159CF
hasPickupBeenCollectedHAS_PICKUP_BEEN_COLLECTED0x80EC48E6679313F9
removePickupREMOVE_PICKUP0x3288D8ACAECD2AB2
createMoneyPickupsCREATE_MONEY_PICKUPS0x0589B5E791CE9B2B
doesPickupExistDOES_PICKUP_EXIST0xAFC1CA75AD4074D1
doesPickupObjectExistDOES_PICKUP_OBJECT_EXIST0xD9EFB6DBF7DAAEA3
getPickupObjectGET_PICKUP_OBJECT0x5099BC55630B25AE
isObjectAPickupIS_OBJECT_A_PICKUP0xFC481C641EBBD27D
isObjectAPortablePickupIS_OBJECT_A_PORTABLE_PICKUP0x0378C08504160D0D
doesPickupOfTypeExistInAreaDOES_PICKUP_OF_TYPE_EXIST_IN_AREA0xF9C36251F6E48E33
setPickupRegenerationTimeSET_PICKUP_REGENERATION_TIME0x78015C9B4B3ECC9D
forcePickupRegenerateFORCE_PICKUP_REGENERATE0x758A5C1B3B1E1990
setPlayerPermittedToCollectPickupsOfTypeSET_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_OF_TYPE0x616093EC6B139DD9
setLocalPlayerPermittedToCollectPickupsWithModelSET_LOCAL_PLAYER_PERMITTED_TO_COLLECT_PICKUPS_WITH_MODEL0x88EAEC617CD26926
allowAllPlayersToCollectPickupsOfTypeALLOW_ALL_PLAYERS_TO_COLLECT_PICKUPS_OF_TYPE0xFDC07C58E8AAB715
setTeamPickupObjectSET_TEAM_PICKUP_OBJECT0x53E0DF1A2A3CF0CA
preventCollectionOfPortablePickupPREVENT_COLLECTION_OF_PORTABLE_PICKUP0x92AEFB5F6E294023
setPickupObjectGlowWhenUncollectableSET_PICKUP_OBJECT_GLOW_WHEN_UNCOLLECTABLE0x27F248C3FEBFAAD3
setPickupGlowDisabledNot in this build_SET_PICKUP_GLOW_DISABLED0x08BD8BA5BDE2C2FA
setPickupGlowOffsetSET_PICKUP_GLOW_OFFSET0x0596843B34B95CE5
setPickupObjectGlowOffsetSET_PICKUP_OBJECT_GLOW_OFFSET0xA08FE5E49BDC39DD
setObjectGlowInSameTeamSET_OBJECT_GLOW_IN_SAME_TEAM0x62454A641B41F3C5
setPickupObjectArrowMarkerSET_PICKUP_OBJECT_ARROW_MARKER0x39A5FB7EAF150840
allowPickupArrowMarkerWhenUncollectableALLOW_PICKUP_ARROW_MARKER_WHEN_UNCOLLECTABLE0x834344A414C7C85D
getDefaultAmmoForWeaponPickupGET_DEFAULT_AMMO_FOR_WEAPON_PICKUP0xDB41D07A45A6D4B7
setPickupGenerationRangeMultiplierSET_PICKUP_GENERATION_RANGE_MULTIPLIER0x318516E02DE3ECE2
getPickupGenerationRangeMultiplierGET_PICKUP_GENERATION_RANGE_MULTIPLIER0xB3ECA65C7317F174
setOnlyAllowAmmoCollectionWhenLowSET_ONLY_ALLOW_AMMO_COLLECTION_WHEN_LOW0x31F924B53EADDF65
setPickupUncollectableSET_PICKUP_UNCOLLECTABLE0x1C1B69FAE509BA97
setPickupTransparentWhenUncollectableSET_PICKUP_TRANSPARENT_WHEN_UNCOLLECTABLE0x858EC9FD25DE04AA
setPickupHiddenWhenUncollectableSET_PICKUP_HIDDEN_WHEN_UNCOLLECTABLE0x3ED2B83AB2E82799
setPickupObjectTransparentWhenUncollectableSET_PICKUP_OBJECT_TRANSPARENT_WHEN_UNCOLLECTABLE0x8881C98A31117998
setPickupObjectAlphaWhenTransparentSET_PICKUP_OBJECT_ALPHA_WHEN_TRANSPARENT0x8CFF648FBD7330F1
setPortablePickupPersistSET_PORTABLE_PICKUP_PERSIST0x46F3ADD1E2D5BAF2
allowPortablePickupToMigrateToNonParticipantsALLOW_PORTABLE_PICKUP_TO_MIGRATE_TO_NON_PARTICIPANTS0x641F272B52E2F0F8
forceActivatePhysicsOnUnfixedPickupFORCE_ACTIVATE_PHYSICS_ON_UNFIXED_PICKUP0x4C134B4DF76025D0
allowPickupByNoneParticipantALLOW_PICKUP_BY_NONE_PARTICIPANT0xAA059C615DE9DD03
suppressPickupRewardTypeSUPPRESS_PICKUP_REWARD_TYPE0xF92099527DB8E2A7
clearAllPickupRewardTypeSuppressionCLEAR_ALL_PICKUP_REWARD_TYPE_SUPPRESSION0xA2C1F5E92AFE49ED
clearPickupRewardTypeSuppressionCLEAR_PICKUP_REWARD_TYPE_SUPPRESSION0x762DB2D380B48D04
renderFakePickupGlowRENDER_FAKE_PICKUP_GLOW0x3430676B11CDF21D
setPickupObjectCollectableInVehicleSET_PICKUP_OBJECT_COLLECTABLE_IN_VEHICLE0x7813E8B8C4AE4799
setPickupTrackDamageEventsSET_PICKUP_TRACK_DAMAGE_EVENTS0xBFFE53AE7E67FCDC
setEntityFlagSuppressShadowSET_ENTITY_FLAG_SUPPRESS_SHADOW0xD05A3241B9A86F19
setEntityFlagRenderSmallShadowSET_ENTITY_FLAG_RENDER_SMALL_SHADOW0xB2D0BDE54F0E8E5A
getWeaponTypeFromPickupTypeGET_WEAPON_TYPE_FROM_PICKUP_TYPE0x08F96CA6C551AD51
getPickupTypeFromWeaponHashGET_PICKUP_TYPE_FROM_WEAPON_HASH0xD6429A016084F1A5
isPickupWeaponObjectValidIS_PICKUP_WEAPON_OBJECT_VALID0x11D1E53A726891FE
getObjectTintIndexGET_OBJECT_TINT_INDEX0xE84EB93729C5F36A
setObjectTintIndexSET_OBJECT_TINT_INDEX0x971DA0055324D033
setTintIndexClosestBuildingOfTypeSET_TINT_INDEX_CLOSEST_BUILDING_OF_TYPE0xF12E33034D887F66
setPropTintIndexSET_PROP_TINT_INDEX0x31574B1B41268673
setPropLightColorSET_PROP_LIGHT_COLOR0x5F048334B4A4E774
isPropLightOverridenIS_PROP_LIGHT_OVERRIDEN0xADF084FB8F075D06
setObjectIsVisibleInMirrorsSET_OBJECT_IS_VISIBLE_IN_MIRRORS0x3B2FD68DB5F8331C
setObjectSpeedBoostAmountSET_OBJECT_SPEED_BOOST_AMOUNT0x96EE0EBA0163DF80
setObjectSpeedBoostDurationSET_OBJECT_SPEED_BOOST_DURATION0xDF6CA0330F2E737B
convertOldPickupTypeToNewCONVERT_OLD_PICKUP_TYPE_TO_NEW0x5EAAD83F8CFB4575
setForceObjectThisFrameSET_FORCE_OBJECT_THIS_FRAME0xF538081986E49E9D
onlyCleanUpObjectWhenOutOfRangeONLY_CLEAN_UP_OBJECT_WHEN_OUT_OF_RANGE0xADBE4809F19F927A
setDisableCollisionsBetweenCarsAndCarParachuteSET_DISABLE_COLLISIONS_BETWEEN_CARS_AND_CAR_PARACHUTE0x8CAAB2BD3EA58BD4
setProjectilesShouldExplodeOnContactSET_PROJECTILES_SHOULD_EXPLODE_ON_CONTACT0x63ECF581BC70E363
setDriveArticulatedJointSET_DRIVE_ARTICULATED_JOINT0x911024442F4898F0
setDriveArticulatedJointWithInflictorSET_DRIVE_ARTICULATED_JOINT_WITH_INFLICTOR0xB20834A7DD3D8896
setObjectIsAPressurePlateSET_OBJECT_IS_A_PRESSURE_PLATE0x734E1714D077DA9A
setWeaponImpactsApplyGreaterForceSET_WEAPON_IMPACTS_APPLY_GREATER_FORCE0x1A6CBB06E2D0D79D
getIsArticulatedJointAtMinAngleGET_IS_ARTICULATED_JOINT_AT_MIN_ANGLE0x43C677F1E1158005
getIsArticulatedJointAtMaxAngleGET_IS_ARTICULATED_JOINT_AT_MAX_ANGLE0x3BD770D281982DB5
setIsObjectArticulatedSET_IS_OBJECT_ARTICULATED0x1C57C94A6446492A
setIsObjectBallSET_IS_OBJECT_BALL0xB5B7742424BD4445

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.Controls50Player input: reading and disabling control actions, vibration, look inversion.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