Marker::Marker: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
'''Function''': Create a marker | |||
==Parameters== | ==Parameters== | ||
* '''type | * '''type''': {{RageType|Number}} | ||
* '''position | * '''position''': {{RageType|Vector3}} | ||
* '''scale''': {{RageType|Number}} | |||
* ''' | * '''direction''': {{RageType|Vector3}} | ||
* '''rotation''': {{RageType|Vector3}} | |||
* ''' | * '''color''': {{RageType|undefined}} (Need to be checked) | ||
* ''' | * '''visible''': {{RageType|Boolean}} | ||
* ''' | * '''dimension''': {{RageType|Number}} | ||
* ''' | |||
* '''dimension | |||
==Syntax== | ==Syntax== | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.markers.new( | mp.markers.new(type, position, scale, | ||
{ | |||
direction: direction, | |||
rotation: rotation, | |||
color: color, | |||
visible: visible, | |||
dimension: dimension | |||
}); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==Markers type== | ==Markers type== | ||
Revision as of 21:09, 27 December 2017
Function: Create a marker
Parameters
- type: Number
- position: Vector3
- scale: Number
- direction: Vector3
- rotation: Vector3
- color: undefined (Need to be checked)
- visible: Boolean
- dimension: Number
Syntax
Server-Side
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