-misterX- Posted February 16, 2013 Share Posted February 16, 2013 if in a function i attach a blip to a player how do i remove it when the player is wasted? Link to comment
Castillo Posted February 16, 2013 Share Posted February 16, 2013 You can create a table and store the blip element there using the player as index, then on wasted you can get it and destroy it. Link to comment
-misterX- Posted February 16, 2013 Author Share Posted February 16, 2013 shorter ways? Link to comment
50p Posted February 16, 2013 Share Posted February 16, 2013 for k, v in ipairs( getAttachedElements( player ) ) do destroyElement( v ); -- it will destroy all elements attached to player end 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