Scripting/Squirrel/Functions/Game/CreateMarker
From VC-MP Wiki
This instance variable creates a marker, visible for all players.
Syntax
CreateMarker( intID, Vector vPos )
Arguments
- ID - The ID of the marker/mini map's icon. Set 1-39
- vPos - The vector, where the marker will be created
Example
This will create a marker, when the player types /c marker.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "marker" ) { CreateMarker( 15, Vector( 136.8904, -1178.8320, 31.3094 ) ); } }
Notes
1. Use only ID's from 1 to 39 for marker/mini map icons. All ID's with a image preview are on VCO's wiki. VCO and VC-MP uses the same ID's for this. [Look here.] 2. Markers are a little bit bugged in VC-MP. If you create a marker, and after this, a player joins to your server, the player won't see any marker. 3. Vector( Location x, Location y, Location z )
