Difference between revisions of "Blip::Blip"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
Line 39: Line 39:
 
This creates a blip at the police station. The blip is assigned to the variable '''policeBlip'''.
 
This creates a blip at the police station. The blip is assigned to the variable '''policeBlip'''.
  
<div class="header" style="background-color: #00baad; color: #FFFFFF; border: 2px solid #00baad;">
+
{{SharedCode|
<div style="margin: 10px 10px 10px 10px;"><b>Shared</b></div>
 
 
<pre>
 
<pre>
 
let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -981.05, 0),
 
let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -981.05, 0),
Line 49: Line 48:
 
});
 
});
 
</pre>
 
</pre>
</div>
+
}}
  
 
== See Also ==
 
== See Also ==

Revision as of 12:29, 2 December 2019

Js.png JavaScript


Creates a blip to display on your map & minimap.

Syntax

mp.blips.new(sprite, position,
{
    name: name,
    scale: scale,
    color: color,
    alpha: alpha,
    drawDistance: drawDistance,
    shortRange: shortRange,
    rotation: rotation,
    dimension: dimension,
    radius: radius,
});

Parameters

  • *sprite: Int (Blip sprites)
  • *position: Vector3
  • name: String
  • scale: Float
  • color: Color ID (Blip colors)
  • alpha: Int [0:255]
  • drawDistance: Float
  • shortRange: Boolean: Auto-hide on the minimap
  • rotation: Float
  • dimension: Int


* = Required

Examples

This creates a blip at the police station. The blip is assigned to the variable policeBlip.

Shared
let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -981.05, 0),
    {
        name: 'Los Santos Police Station',
        color: 3,
        shortRange: true,
});

See Also