getMarkerCount | Multi Theft Auto: Wiki Skip to content

getMarkerCount

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


Returns the number of markers that currently exist in the world.

Syntax

int getMarkerCount ( )

Returns

  • int: value

Returns the number of markers that currently exist.

Code Examples

shared

This example outputs the amount of markers to the player.

function howManyMarkers(thePlayer,command)
local ammount = getMarkerCount()
outputChatBox("There are "..ammount.." markers.",thePlayer,255,255,0)
end
addCommandHandler("markers",howManyMarkers)