Jump to content

[HELP] Customblips destroy problem


..:D&G:..

Recommended Posts

Posted

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 ) 

Posted

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. 

Posted

[quote name=..:D&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..

Posted

[quote name=..:D&G:..][quote name=..:D&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.

Posted
[quote name=..:D&G:..][quote name=..:D&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...

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...