Blip::Blip: Difference between revisions
No edit summary |
m (radius parameter) |
||
| Line 32: | Line 32: | ||
*'''rotation''': {{RageType|Float}} | *'''rotation''': {{RageType|Float}} | ||
*'''dimension''': {{RageType|Int}} | *'''dimension''': {{RageType|Int}} | ||
*'''radius''': {{RageType|Float}} | |||
== Example == | == Example == | ||
Revision as of 22:09, 8 June 2020
Creates a blip to display on your map & minimap.
JavaScript Syntax
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
- radius: Float
Example
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
- Functions
- Properties