RedM Natives

SET_ENTITY_HAS_GRAVITY

Hash0x0CEDB728A1083FA7
Runtime nameSetEntityHasGravity
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4A4722448F18EEF5

Signature

void SET_ENTITY_HAS_GRAVITY(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

Returns void

Usage

Lua
SetEntityHasGravity(entity, toggle)

-- always works, by hash
Citizen.InvokeNative(0x0CEDB728A1083FA7, entity, toggle)
JavaScript and C#
JavaScript
SetEntityHasGravity(entity, toggle);

// by hash
Citizen.invokeNative('0x0CEDB728A1083FA7', entity, toggle);
C#
Function.Call((Hash)0x0CEDB728A1083FA7, entity, toggle);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.