Marker::Marker: Difference between revisions

From RAGE Multiplayer Wiki
(Replaced markers list with template)
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Creating new markers
'''Function''': Create a marker
==Parameters==
==Parameters==
* '''type: <span style="color:#008017>Number</span>'''  
* '''type''': {{RageType|Int}}
* '''position: <span style="color:#008017>Vector3</span>'''  
* '''position''': {{RageType|Vector3}}
* '''direction: <span style="color:#008017>Vector3</span>'''  
* '''scale''': {{RageType|Float}}
* '''radius: <span style="color:#008017>Number</span>'''  
* '''direction''': {{RageType|Vector3}}
* '''red: <span style="color:#008017>Number</span>'''  
* '''rotation''': {{RageType|Vector3}}
* '''blue: <span style="color:#008017>Number</span>'''
* '''color''': {{RageType|[Int, Int, Int, Int]}} [0:255]
* '''alpha: <span style="color:#008017>Number</span>'''
* '''visible''': {{RageType|Boolean}}
* '''visible: <span style="color:#008017>Boolean</span>'''  
* '''dimension''': {{RageType|Int}}
* '''dimension: <span style="color:#008017>Number</span>'''


==Syntax==
==Syntax==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{Shared}}
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
mp.markers.new(type, position, direction, radius, red, green, blue, alpha, [, visible, dimension])
mp.markers.new(type, position, scale,
{
    direction: direction,
    rotation: rotation,
    color: color,
    visible: visible,
    dimension: dimension
});
</syntaxhighlight>
</syntaxhighlight>
</div>
 
==Markers type==
{{Markers_type}}


==See Also==
==See Also==
{{Marker_function}}
{{Marker_function}}
[[Category:Marker API]]
[[Category:Shared Function]]

Latest revision as of 07:36, 5 September 2020

Function: Create a marker

Parameters

  • type: Int
  • position: Vector3
  • scale: Float
  • direction: Vector3
  • rotation: Vector3
  • color: [Int, Int, Int, Int] [0:255]
  • visible: Boolean
  • dimension: Int

Syntax

Shared
mp.markers.new(type, position, scale,
{
    direction: direction,
    rotation: rotation,
    color: color,
    visible: visible,
    dimension: dimension
});

Markers type

  • ID: 0
  • ID: 1
  • ID: 2
  • ID: 3
  • ID: 4
  • ID: 5
  • ID: 6
  • ID: 7
  • ID: 8
  • ID: 9
  • ID: 10
  • ID: 11
  • ID: 12
  • ID: 13
  • ID: 14
  • ID: 15
  • ID: 16
  • ID: 17
  • ID: 18
  • ID: 19
  • ID: 20
  • ID: 21
  • ID: 22
  • ID: 23
  • ID: 24
  • ID: 25
  • ID: 26
  • ID: 27
  • ID: 28
  • ID: 29
  • ID: 30
  • ID: 31
  • ID: 32
  • ID: 33
  • ID: 34
  • ID: 35
  • ID: 36
  • ID: 37
  • ID: 38
  • ID: 39
  • ID: 40
  • ID: 41
  • ID: 42
  • ID: 43
  • ID: 44

See Also