Im trying to remove some blips ex. Meth,coke,etc. How do I go about doing that?
It’s pretty easy. Just go to the client-side scripts and find the part that looks like this:
-- Create Blips
Citizen.CreateThread(function()
for i=1, #Config.Shops, 1 do
local blip = AddBlipForCoord(Config.Shops[i].x, Config.Shops[i].y, Config.Shops[i].z)
SetBlipSprite (blip, 71)
SetBlipDisplay(blip, 4)
SetBlipScale (blip, 0.9)
SetBlipColour (blip, 4)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString(_U('barber_blip'))
EndTextCommandSetBlipName(blip)
end
end)
-then you hash it out or delete it altogether.
How do u remove certain ones?
please read above and you will see
Thats doesnt work for me? im trying to remove opium
remove lines 230-244 in the client in drugs
Is this just for opium?
I have tried everything possible… removed the whole line, did the – and i just get an error. all blips are remaining on the map… i have all the drugs coke, meth, weed etc… I have looked in client main.lua also esx_drugs / config.lua and even set blips to false and either i get an error or nothing happens… I have tried for a few days… can someone please explain in lamon’s terms if i am doing something wrong?
Not your fault, redrag the files and then clear fivem server cache, Use find option and search for SetBlipSprite and use hashes in client lua accordingly
##SetBlipSprite
I fixed the error that i received because ## didn’t work had to do – because it’s lua. but now the blip is gone with the marijuana plant but now i have the blipcircles still?? which one do i do for that?
20210125013442_1|690x388
I think i figured it out and you can tell me if i am right or wrong… seems to work ok i put a – at the very bottom where it says createblipcircle … it removed them and the plants are still there… so i assume that is what i needed to do ?
plants are still there than find for ESX.Game.SpawnLocalObject it would be a prop like
in drugs its - ESX.Game.SpawnLocalObject('prop_weed_02', weedCoords, function(obj)
so – that ,
But i cant figure out till now what do you want actually as you want to remove blips and plants spawning too, ?
No I was asking if that was the correct area… so i want all the drugs to remain there, but i don’t want the players to know where they are located if that makes sense… So It is how i want it now, just wanted to verify I – the correct lines wouldn’t want it to mess up later!
Do a Search In Files for SetBlipScale for example.
And put – infront of every line in the function, to comment it out.
- You can also section comment with: /* COMMENTED STUFF */

