Blip::Blip: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
mNo edit summary
Line 7: Line 7:
*'''scale''': {{RageType|Float}}
*'''scale''': {{RageType|Float}}
*'''color''': {{RageType|Color ID}} ([[Blips#Blip_colors|Blip colors]])
*'''color''': {{RageType|Color ID}} ([[Blips#Blip_colors|Blip colors]])
*'''alpha''': {{RageType|Float}} [0.0:1.0]
*'''alpha''': {{RageType|Int}} [0:255]
*'''drawDistance''': {{RageType|Float}}
*'''drawDistance''': {{RageType|Float}}
*'''shortRange''': {{RageType|Boolean}}: Auto-hide on the minimap
*'''shortRange''': {{RageType|Boolean}}: Auto-hide on the minimap

Revision as of 12:54, 29 December 2017

Function: Creates a blip.

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: Vector3
  • dimension: Int

Syntax

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

Example

// NEED TO BE DONE

See Also