Jump to content

destroyingElement make element dissapear from .map file ?


DarkLink

Recommended Posts

Hi there guys, I have been trying to do something.. but I guess its not possible, is this true?

When I destroyElement , some objects from my map file... they get removed from the GTA World and also from .map file ?

How can I just remove them from GTA World ? And add them seconds before ?

I notice this, because this code :

  
-- before the code, I see the objects on GTA World . 
  
for _, object in ipairs( getElementsByType ('object') ) do 
       destroyElement(object)   -- it enters here and its fine, I dont see objects on GTA World 
end 
  
  
for _, object in ipairs( getElementsByType ('object') ) do    -- IT doesnt enter this for ! so I guess, the objects were permanently from my .map file ? where are they ? cant I get them again from my .map file while the resource is running ? 
     local x,y,z = getElementPosition(object) 
     createObject(v, x,y,z) 
end 
  

Thanks alot in advance!

Link to comment

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