Client · JavaScript & Lua

GTA V Physics natives

Ropes, and the physics state of entities.

The 49 natives of the game’s PHYSICS 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
addRopeADD_ROPE0xE832D760399EB220
deleteRopeDELETE_ROPE0x52B4829281364649
deleteChildRopeDELETE_CHILD_ROPE0xAA5D6B1888E4DB20
doesRopeExistDOES_ROPE_EXIST0xFD5448BE3111ED96
ropeDrawEnabledROPE_DRAW_ENABLED0xA1AE736541B0FCA3
ropeDrawShadowEnabledROPE_DRAW_SHADOW_ENABLED0xF159A63806BB5BA8
loadRopeDataLOAD_ROPE_DATA0xCBB203C04D1ABD27
pinRopeVertexPIN_ROPE_VERTEX0x2B320CF14146B69A
unpinRopeVertexUNPIN_ROPE_VERTEX0x4B5AE2EEE4A8F180
getRopeVertexCountGET_ROPE_VERTEX_COUNT0x3655F544CD30F0B5
attachEntitiesToRopeATTACH_ENTITIES_TO_ROPE0x3D95EC8B6D940AC3
attachRopeToEntityATTACH_ROPE_TO_ENTITY0x4B490A6832559A65
detachRopeFromEntityDETACH_ROPE_FROM_ENTITY0xBCF3026912A8647D
ropeSetUpdatePinvertsROPE_SET_UPDATE_PINVERTS0xC8D667EE52114ABA
ropeSetUpdateOrderROPE_SET_UPDATE_ORDER0xDC57A637A20006ED
ropeSetSmoothReelinROPE_SET_SMOOTH_REELIN0x36CCB9BE67B970FD
isRopeAttachedAtBothEndsIS_ROPE_ATTACHED_AT_BOTH_ENDS0x84DE3B5FB3E666F0
getRopeLastVertexCoordGET_ROPE_LAST_VERTEX_COORD0x21BB0FBD3E217C2D
getRopeVertexCoordGET_ROPE_VERTEX_COORD0xEA61CA8E80F09E4D
startRopeWindingSTART_ROPE_WINDING0x1461C72C889E343E
stopRopeWindingSTOP_ROPE_WINDING0xCB2D4AB84A19AA7C
startRopeUnwindingFrontSTART_ROPE_UNWINDING_FRONT0x538D1179EC1AA9A9
stopRopeUnwindingFrontSTOP_ROPE_UNWINDING_FRONT0xFFF3A50779EFBBB3
ropeConvertToSimpleROPE_CONVERT_TO_SIMPLE0x5389D48EFA2F079A
ropeLoadTexturesROPE_LOAD_TEXTURES0x9B9039DBF2D258C1
ropeAreTexturesLoadedROPE_ARE_TEXTURES_LOADED0xF2D0E6A75CC05597
ropeUnloadTexturesROPE_UNLOAD_TEXTURES0x6CE36C35C1AC8163
doesScriptOwnRopeDOES_SCRIPT_OWN_ROPE0x271C9D3ACA5D6409
ropeAttachVirtualBoundGeomROPE_ATTACH_VIRTUAL_BOUND_GEOM0xBC0CE682D4D05650
ropeChangeScriptOwnerROPE_CHANGE_SCRIPT_OWNER0xB1B6216CA2E7B55E
ropeSetRefframevelocityColliderorderROPE_SET_REFFRAMEVELOCITY_COLLIDERORDER0xB743F735C03D7810
ropeGetDistanceBetweenEndsROPE_GET_DISTANCE_BETWEEN_ENDS0x73040398DFF9A4A6
ropeForceLengthROPE_FORCE_LENGTH0xD009F759A723DB1B
ropeResetLengthROPE_RESET_LENGTH0xC16DE94D9BEA14A0
applyImpulseToClothAPPLY_IMPULSE_TO_CLOTH0xE37F721824571784
setDampingSET_DAMPING0xEEA3B200A6FEB65B
getDampingNot in this buildGET_DAMPING0x8C520A929415BCD2
activatePhysicsACTIVATE_PHYSICS0x710311ADF0E20730
setCgoffsetSET_CGOFFSET0xD8FA3908D7B86904
getCgoffsetGET_CGOFFSET0x8214A4B5A7A33612
setCgAtBoundcenterSET_CG_AT_BOUNDCENTER0xBE520D9761FF811F
breakEntityGlassBREAK_ENTITY_GLASS0x2E648D16F6E308F3
getIsEntityAFragGET_IS_ENTITY_A_FRAG0x0C112765300C7E1E
setDisableBreakingSET_DISABLE_BREAKING0x5CEC1A84620E7D5B
resetDisableBreakingRESET_DISABLE_BREAKING0xCC6E963682533882
setDisableFragDamageSET_DISABLE_FRAG_DAMAGE0x01BA3AED21C16CFB
setUseKinematicPhysicsSET_USE_KINEMATIC_PHYSICS0x15F944730C832252
setInStuntModeSET_IN_STUNT_MODE0x9EBD751E5787BAF2
setInArenaModeSET_IN_ARENA_MODE0xAA6A6098851C396F

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.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.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