getBlipOrdering | Multi Theft Auto: Wiki Skip to content

getBlipOrdering

Client-side
Server-side
Shared

Pair: setBlipOrdering

This function gets the Z ordering value of a blip. The Z ordering determines if a blip appears on top of or below other blips. Blips with a higher Z ordering value appear on top of blips with a lower value. The default value for all blips is 0.

OOP Syntax Help! I don't understand this!

  • Method: blip:getOrdering(...)
  • Variable: .ordering

Syntax

int|false getBlipOrdering ( blip theBlip )
Required Arguments
  • theBlip: The blip to retrieve the Z ordering value of.

Returns

  • int|false: z-ordering

Returns the Z ordering value of the blip if successful, false otherwise.

Code Examples

shared
function getMyBlip(theBlip)
local ordering = getBlipOrdering ( theBlip )
if (ordering) then
outputChatBox("The following blip has a ordering of "..ordering)
end
end