EntityClient

setEntityHasGravity

SET_ENTITY_HAS_GRAVITY0x4A4722448F18EEF5

The GTA V native SET_ENTITY_HAS_GRAVITY of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityHasGravity, in JavaScript and in Lua.

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_HAS_GRAVITY(Entity entity, BOOL toggle)
Hash
0x4A4722448F18EEF5

Open in the interactive natives reference