Jump to content

customblips


Recommended Posts

@Walid, forgot to add a comma :o

try this

BlipsTable = { 
[1]={2355.98145, -1660.65625, "image/icon.png" }, 
[2]={2480.66650, -1666.94678, "image/icon.png" } 
} 
addEventHandler ( "onClientResourceStart" , getResourceRootElement(getThisResource ()), 
function () 
    for i=1,#BlipsTable do 
        local x, y , pic = BlipsTable[i][1], BlipsTable[i][2],BlipsTable[i][3] 
        local Blips = exports.customblips:createCustomBlip ( x, y, 16, 16,pic, 100 ) 
        exports.customblips:setCustomBlipRadarScale(Blips, 1) 
    end 
end) 

Link to comment

There needs to add to meta.xml?

@Walid, forgot to add a comma :o

try this

BlipsTable = { 
[1]={2355.98145, -1660.65625, "image/icon.png" }, 
[2]={2480.66650, -1666.94678, "image/icon.png" } 
} 
addEventHandler ( "onClientResourceStart" , getResourceRootElement(getThisResource ()), 
function () 
    for i=1,#BlipsTable do 
        local x, y , pic = BlipsTable[i][1], BlipsTable[i][2],BlipsTable[i][3] 
        local Blips = exports.customblips:createCustomBlip ( x, y, 16, 16,pic, 100 ) 
        exports.customblips:setCustomBlipRadarScale(Blips, 1) 
    end 
end) 

Link to comment
  • 1 month later...
There needs to add to meta.xml?

it does not work

@Walid, forgot to add a comma :o

try this

BlipsTable = { 
[1]={2355.98145, -1660.65625, "image/icon.png" }, 
[2]={2480.66650, -1666.94678, "image/icon.png" } 
} 
addEventHandler ( "onClientResourceStart" , getResourceRootElement(getThisResource ()), 
function () 
    for i=1,#BlipsTable do 
        local x, y , pic = BlipsTable[i][1], BlipsTable[i][2],BlipsTable[i][3] 
        local Blips = exports.customblips:createCustomBlip ( x, y, 16, 16,pic, 100 ) 
        exports.customblips:setCustomBlipRadarScale(Blips, 1) 
    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...