getMarkerCount | Multi Theft Auto: Wiki Skip to content

getMarkerCount

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

getMarkerCount ( )

Code Examples

server

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)