Jump to content

Blip removing


Mefisto_PL

Recommended Posts

  • Moderators
Posted

This is at least one mistake.

        for blipIndex, blipValue in pairs ( blipy ) do 
            if blipValue == blip then 
                destroyElement ( blip ) 
                break 
            end 
        end 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

You can create a table containing all blips for each player, then destroy it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

In this, I can't because I want to create it only visible for one team. It's created when player type another command and I want to remove that blip when player type this command.

Posted

What has that to do with what I said?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Moderators
Posted

You can do it as solidsnake said,

But I will recommend you to create it at client side cause:

  • - Reduce amount of elements at serverside.
    - His own created blips don't have to be deleted.
    - And especial easier to manage.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted
You can't help me that way? :|

Learn lua ftw!

Especially tables, that is the one thing you need to make clean fast systems.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

  • Moderators
Posted

If you want that, you have to give every player a blip and use this function to manage and reduce the amount of elements:

https://wiki.multitheftauto.com/wiki/Se ... tVisibleTo

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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...