..:D&G:.. Posted August 21, 2015 Share Posted August 21, 2015 Hello guys, I am using the resource 'cutomblips', and when I try to destroy a custom blip, using it's destroy function, I keep getting "Bad 'custom blip' argument". markerIcon = exports.customblips:createCustomBlip( v[1], v[2], 25, 25, "tanker/truckericon.png", 25 ) Link to comment
Walid Posted August 21, 2015 Share Posted August 21, 2015 As far as i know there is an export function to destroy custom blips all what you need is: isCustomBlipVisible -- check if the custom blip is visible or not. destroyCustomBlip -- then destroy it. Link to comment
..:D&G:.. Posted August 21, 2015 Author Share Posted August 21, 2015 [quote name=..&G:..] using it's destroy function, I keep getting "Bad 'custom blip' argument". Well, I said that I am using the script's destroy function, but I get that Bad custom blip argument, error.. Link to comment
Atton Posted August 22, 2015 Share Posted August 22, 2015 [quote name=..&G:..][quote name=..&G:..] using it's destroy function, I keep getting "Bad 'custom blip' argument". Well, I said that I am using the script's destroy function, but I get that Bad custom blip argument, error.. In which case find the exported function and values it takes, then write your call in accordance with it. Link to comment
..:D&G:.. Posted August 22, 2015 Author Share Posted August 22, 2015 [quote name=..&G:..][quote name=..&G:..] using it's destroy function, I keep getting "Bad 'custom blip' argument". Well, I said that I am using the script's destroy function, but I get that Bad custom blip argument, error.. In which case find the exported function and values it takes, then write your call in accordance with it. I know... I am not stupid -.- It only has 1 argument, which is the blip itself... Even though the blip is created and shown on the map without any problems, if I do exports.customblips:destroyBlip(blipName), I get that error... Link to comment
Atton Posted August 22, 2015 Share Posted August 22, 2015 In that case try checking the export Link to comment
..:D&G:.. Posted August 22, 2015 Author Share Posted August 22, 2015 I tried using destroyElement, but it gets numbers instead of the custom blip element. And no, those numbers are not the positions of the custom blips, I checked, they are not anywhere in my script. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now