EntityClient

setEntityAlwaysPrerender

SET_ENTITY_ALWAYS_PRERENDER0xACAD101E1FB66689

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

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

Usage

JavaScript
setEntityAlwaysPrerender(entity, toggle);
Lua
setEntityAlwaysPrerender(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_ALWAYS_PRERENDER(Entity entity, BOOL toggle)
Hash
0xACAD101E1FB66689

Open in the interactive natives reference