setBlipOrdering
Client-side
Server-side
Shared
Pair: getBlipOrdering
This function sets the Z ordering of a blip. It allows you to make a blip appear on top of or below other blips.
OOP Syntax Help! I don't understand this!
- Method: blip:getOrdering(...)
- Variable: .ordering
Syntax
bool setBlipOrdering ( blip theBlip, int ordering )
Required Arguments
- theBlip: The blip whose Z ordering to change.
- ordering: The new Z ordering value. Blips with higher values will appear on top of blips with lower values. Possible range is -32767 to 32767. Default is 0.
Returns
- bool: result
Returns true if the blip ordering was changed successfully, false otherwise.
Code Examples
server
This example will create a blip and make your blip on top of all other blip's.
function makeBlipHigher(thePlayer) local setmeup = createBlipAttachedTo ( thePlayer, 3, 3, 255, 0,0,255,0,99999.0, root) setBlipOrdering(setmeup, getBlipOrdering(setmeup) + 1) outputChatBox("*INFO: #ffff00Your blip is now on top of others!", thePlayer, 255,0,0,true) for i,v in ipairs(getElementsByType("player")) do if v ~= thePlayer then outputChatBox("*INFO: #ffff00" .. getPlayerName(thePlayer) .. "'s blip is now on top of your blip!",v,255,0,0,true) end endendaddCommandHandler("incrementBlip", makeBlipHigher, false, false)