Blip::Blip: Difference between revisions

From RAGE Multiplayer Wiki
m (radius parameter)
mNo edit summary
Line 25: Line 25:
*'''{{Required}}position''': {{RageType|Vector3}}
*'''{{Required}}position''': {{RageType|Vector3}}
*'''name''': {{RageType|String}}
*'''name''': {{RageType|String}}
*'''scale''': {{RageType|Float}}
*'''scale''': {{RageType|Float}}: How big the blip shows on the map
*'''color''': {{RageType|Color ID}} ([[Blips#Blip_colors|Blip colors]])
*'''color''': {{RageType|Color ID}} ([[Blips#Blip_colors|Blip colors]])
*'''alpha''': {{RageType|Int}} [0:255]
*'''alpha''': {{RageType|Int}} [0:255]
*'''drawDistance''': {{RageType|Float}}
*'''drawDistance''': {{RageType|Float}}
*'''shortRange''': {{RageType|Boolean}}: Auto-hide on the minimap
*'''shortRange''': {{RageType|Boolean}}: If it's hidden in the minimap until the player is close
*'''rotation''': {{RageType|Float}}
*'''rotation''': {{RageType|Float}}
*'''dimension''': {{RageType|Int}}
*'''dimension''': {{RageType|Int}}

Revision as of 11:37, 5 September 2020

Shared
Function

 JavaScript


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: How big the blip shows on the map
  • color: Color ID (Blip colors)
  • alpha: Int [0:255]
  • drawDistance: Float
  • shortRange: Boolean: If it's hidden in the minimap until the player is close
  • 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