CreateMarker

From GTA Network Wiki
Jump to: navigation, search

CreateMarker
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

This function will create a marker on your map.

Syntax

Marker NAPI.Marker.CreateMarker(uint/int/MarkerType markerType, Vector3 pos, Vector3 dir, Vector3 rot, float scale, Color color, bool bobUpAndDown = false, uint dimension = NAPI.GlobalDimension);
  • markerType: parameter input should be in uint, int or MarkerType type. See Marker.
  • pos: parameter input should be in Vector3 type.
  • dir: parameter input should be in Vector3 type.
  • rot: parameter input should be in Vector3 type.
  • scale: parameter input should be in float type.
  • color: parameter input should be in Color type.

Optional Arguments

  • bobUpAndDown: parameter input should be in bool type.
  • dimension: parameter input should be in uint type.


NOTE: This function returns data in Marker type.

Usage example(s)

This will create a red marker on top of a player in C#.

NAPI.Marker.CreateMarker(1, player.position, new Vector3(), new Vector3(), 1f, new Color(255, 0, 0, 155), true, 1);

Changelog

Version Description
1.0 Release.

References