Is that esx_drugs?
i don’t use esx_drugs
i need helpppp
Blips list:
https://wiki.â– â– â– â– â– â– â– â– â– â– â– /index.php?title=Blips
For the red circle:
Append your blip function like this example
local blip = AddBlipForRadius(coords, radius)
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 1)
SetBlipAlpha (blip, 128)
creat orther file or add in config? @ZerefGG
Go to the resource you want to add the blip “red zone” and look for the blip function (mostly in the bottom of the client.lua file and append to the example i gave you
Below v3
Try this:
local redzone = AddBlipForRadius(v1, 100)
SetBlipHighDetail(redzone, true)
SetBlipColour(redzone, 1)
SetBlipAlpha (redzone, 128)
Dude stop sending images, copy paste the text so i can edit it and post it back…
Try this
– Create blips
Citizen.CreateThread(function()
for k,v in pairs(Config.Zones) do
local blip = AddBlipForRadius(v.x, v.y, v.z , 100.0) -- you can use a higher number for a bigger zone
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 1)
SetBlipAlpha (blip, 128)
local blip = AddBlipForCoord(v.x, v.y, v.z)
SetBlipSprite (blip, v.sprite)
SetBlipDisplay(blip, 4)
SetBlipScale (blip, 0.9)
SetBlipColour (blip, v.color)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(v.name)
EndTextCommandSetBlipName(blip)
end
end)
i try thanks
can you send me your file ? @TNGaming_TV
i can creat blip for drugs, but can’t creat for holdup and holdupbank
holdup:
Citizen.CreateThread(function()
for k,v in pairs(Stores) do
local blip = AddBlipForRadius(v.position.x, v.position.y, v.position.z , 100.0) -- you can use a higher number for a bigger zone
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 1)
SetBlipAlpha (blip, 128)
local blip = AddBlipForCoord(v.position.x, v.position.y, v.position.z)
SetBlipSprite(blip, 156)
SetBlipScale(blip, 0.8)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('shop_robbery'))
EndTextCommandSetBlipName(blip)
end
end)
holdupbank:
Citizen.CreateThread(function()
for k,v in pairs(Banks)do
local ve = v.position
local blip = AddBlipForRadius(ve.x, ve.y, ve.z, 100.0) -- you can use a higher number for a bigger zone
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 1)
SetBlipAlpha (blip, 128)
local blip = AddBlipForCoord(ve.x, ve.y, ve.z)
SetBlipSprite(blip, 255)--156
SetBlipScale(blip, 0.8)
SetBlipColour(blip, 75)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('bank_robbery'))
EndTextCommandSetBlipName(blip)
end
end)
where do you actually add these codes in the blip section
thank you so much <3 amazing @ZerefGG
that’s the whole blip function.
what resources are you editing?
esx_drug, esx_holdup, esx_holdupbank
I added and all icon disappeared