Hello world,
today I start my project of store
do you know how to change the color of the Blips/marker because I can’t do it
to make my code, I help to the code of hoegarden31 fo your Weapon Store [v1.1]
this is his code
function ShowWeashopBlips(bool)
if bool and #weashop_blips == 0 then
for station,pos in pairs(weashop_locations) do
local loc = pos
pos = pos.entering
local blip = AddBlipForCoord(pos[1],pos[2],pos[3])
-- 60 58 137
SetBlipSprite(blip,110)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString('Ammunation')
EndTextCommandSetBlipName(blip)
SetBlipAsShortRange(blip,true)
SetBlipAsMissionCreatorBlip(blip,true)
table.insert(weashop_blips, {blip = blip, pos = loc})
end
I try with SetBlipColor(blip, 3) for change the color but I can’t
Can you help me Please ?
Benjamin