HUDClient

setBlipRotation

SET_BLIP_ROTATION0xF87683CDF73C3F6E

The GTA V native SET_BLIP_ROTATION of the HUD namespace, as LS:MP client scripts call it: the global function setBlipRotation, in JavaScript and in Lua.

SignatureJavaScript
setBlipRotation(blip: Blip, rotation: number): void
SignatureLua
setBlipRotation(blip: Blip, rotation: integer)

Usage

JavaScript
setBlipRotation(blip, rotation);
Lua
setBlipRotation(blip, rotation)

Parameters

ParameterTypeJavaScriptLua
blipBlipnumberinteger
rotationintnumberinteger

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.

After some testing, looks like you need to use CEIL() on the rotation (vehicle/ped heading) before using it there.

Reference

Namespace
HUD HUD
In the game
void SET_BLIP_ROTATION(Blip blip, int rotation)
Hash
0xF87683CDF73C3F6E

Open in the interactive natives reference