Blip::getColour: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Function to return the colour value of the blip.
== Syntax ==
<pre>
blip.getColour();
</pre>
=== Return Value ===
* {{RageType|Number}}
== Examples ==
Retrieving the colour value from the blip called policeBlip
{{ClientsideCode|
<pre>
let policeBlip = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0), {
    color: 3,
    shortRange: true,
});
let getBlipColour = policeBlip.getColour();
mp.gui.chat.push("Colour: " + getBlipColour); //Output: "Colour: 3"
</pre>
}}


==Syntax==
<syntaxhighlight lang="javascript">blip.getColour();</syntaxhighlight>
===Return value===
*'''int'''
==Example==
<syntaxhighlight lang="javascript">
// todo
</syntaxhighlight>
==See also==
==See also==
{{Blip_s_function_c}}
{{Blip_definition}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Blip API]]
[[Category:Blip API]]
[[Category:TODO: Example]]
[[Category:Client-side Function]]

Latest revision as of 08:23, 6 May 2019

Function to return the colour value of the blip.

Syntax

blip.getColour();

Return Value

  • Number

Examples

Retrieving the colour value from the blip called policeBlip

Client-Side
let policeBlip = mp.blips.new(60, new mp.Vector3(407.95, -961.05, 0), {
    color: 3,
    shortRange: true,
});

let getBlipColour = policeBlip.getColour();
mp.gui.chat.push("Colour: " + getBlipColour); //Output: "Colour: 3"

See also