setBlipRotation
SET_BLIP_ROTATION0xF87683CDF73C3F6EThe 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.
setBlipRotation(blip: Blip, rotation: number): voidsetBlipRotation(blip: Blip, rotation: integer)Usage
JavaScript
setBlipRotation(blip, rotation);Lua
setBlipRotation(blip, rotation)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
blip | Blip | number | integer |
rotation | int | number | integer |
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