PhysicsClient

setUseKinematicPhysics

SET_USE_KINEMATIC_PHYSICS0x15F944730C832252

The GTA V native SET_USE_KINEMATIC_PHYSICS of the PHYSICS namespace, as LS:MP client scripts call it: the global function setUseKinematicPhysics, in JavaScript and in Lua.

SignatureJavaScript
setUseKinematicPhysics(entity: Entity, toggle: boolean): void
SignatureLua
setUseKinematicPhysics(entity: Entity, toggle: boolean)

Usage

JavaScript
setUseKinematicPhysics(entity, toggle);
Lua
setUseKinematicPhysics(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Physics PHYSICS
In the game
void SET_USE_KINEMATIC_PHYSICS(Entity entity, BOOL toggle)
Hash
0x15F944730C832252
Introduced
Game build 463 legacy numbering
Formerly
_SET_ENTITY_PROOF_UNK

Open in the interactive natives reference