EntityClient

setEntityHeading

SET_ENTITY_HEADING0x8E2530AA8ADA980E

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

SignatureJavaScript
setEntityHeading(entity: Entity, heading: number): void
SignatureLua
setEntityHeading(entity: Entity, heading: number)

Usage

JavaScript
setEntityHeading(entity, heading);
Lua
setEntityHeading(entity, heading)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
headingfloatnumbernumber

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.

Set the heading of an entity in degrees also known as "Yaw".

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_HEADING(Entity entity, float heading)
Hash
0x8E2530AA8ADA980E

Open in the interactive natives reference