EntityClient

setEntityDynamic

SET_ENTITY_DYNAMIC0x1718DE8E3F2823CA

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

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

Usage

JavaScript
setEntityDynamic(entity, toggle);
Lua
setEntityDynamic(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_DYNAMIC(Entity entity, BOOL toggle)
Hash
0x1718DE8E3F2823CA

Open in the interactive natives reference