DarkLink Posted June 27, 2012 Share Posted June 27, 2012 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
Anderl Posted June 27, 2012 Share Posted June 27, 2012 They are only removed from GTA World. And yes, you can get the objects from the map file again using XML functions to load it as a .map file is a xml. Link to comment
DarkLink Posted June 27, 2012 Author Share Posted June 27, 2012 Okay thanks mate, problem fixed 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