..:D&G:.. Posted August 21, 2015 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 ) MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
Walid Posted August 21, 2015 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. Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
..:D&G:.. Posted August 21, 2015 Author 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.. MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
Atton Posted August 22, 2015 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. Nikola Tesla is love Nikola Tesla is light. Email: [email protected]
..:D&G:.. Posted August 22, 2015 Author 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... MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
Atton Posted August 22, 2015 Posted August 22, 2015 In that case try checking the export Nikola Tesla is love Nikola Tesla is light. Email: [email protected]
..:D&G:.. Posted August 22, 2015 Author 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. MTA:Rust Pre-Alpha Build v.0.3: https://forum.mtasa.com/viewtopic.php?f=114&t=97848 2Pac: ''Only God can judge me!''
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