Jump to content

createBlipAttachedTo issue


AMARANT

Recommended Posts

While creating simple function to blip some player on the radar i came across one problem. Whenever I create a blip it shows up only on the map (F11) but not on the radar. What am I doing wrong?

BTW: Debug message appears.

addEventHandler("onClientGUIClick",getRootElement(), 
function () 
if (source == MapButton[1]) and guiGridListGetSelectedItem ( MapGridList[1] )~=-1 then 
local row, column = guiGridListGetSelectedItem ( MapGridList[1] ) 
local name = guiGridListGetItemText ( MapGridList[1], row, column ) 
local player = getPlayerFromName(name) 
local blip = createBlipAttachedTo(player,41) 
outputChatBox(row.."  +   "..column.."  +  "..name) 
end 
end) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...