EntityClient

forceEntityAiAndAnimationUpdate

FORCE_ENTITY_AI_AND_ANIMATION_UPDATE0x40FDEDB72F8293B2

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

SignatureJavaScript
forceEntityAiAndAnimationUpdate(entity: Entity): void
SignatureLua
forceEntityAiAndAnimationUpdate(entity: Entity)

Usage

JavaScript
forceEntityAiAndAnimationUpdate(entity);
Lua
forceEntityAiAndAnimationUpdate(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Based on carmod_shop script decompile this takes a vehicle parameter. It is called when repair is done on initial enter.

Reference

Namespace
Entity ENTITY
In the game
void FORCE_ENTITY_AI_AND_ANIMATION_UPDATE(Entity entity)
Hash
0x40FDEDB72F8293B2

Open in the interactive natives reference