Blip::rotation: Difference between revisions
No edit summary |
|||
| Line 9: | Line 9: | ||
This will change the blip to be upside-down. | This will change the blip to be upside-down. | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0)); | let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0)); | ||
| Line 16: | Line 15: | ||
createdBlip.rotation = 180; | createdBlip.rotation = 180; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Blip_function}} | {{Blip_function}} | ||
Revision as of 14:15, 16 January 2018
This function is used to change the blip rotation.
Syntax
blip.rotation = 0;
Example
This will change the blip to be upside-down.
Server-Side
let createdBlip = mp.blips.new(1, new mp.Vector3(0, 0, 0));
createdBlip.rotation = 180;