GetMarkerCount

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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


Syntax

int getMarkerCount ( )

Required Arguments

None

Returns

Returns the number of markers that currently exist.

Example

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)

See Also