LabiVila Posted March 6, 2018 Share Posted March 6, 2018 Hello, its me again. I wanted to know if there was a way to delete an object from a specific dimension since destroyElement destroys in all dimensions. If there is not, how would it be the most effective way to simulate one? Thank you! Link to comment
DNL291 Posted March 6, 2018 Share Posted March 6, 2018 Use getElementDimension to check it's dimension, then remove the object. Link to comment
Moderators IIYAMA Posted March 6, 2018 Moderators Share Posted March 6, 2018 Or move it to the dimension you want (clientside) https://wiki.multitheftauto.com/wiki/SetElementDimension Link to comment
_DrXenon Posted March 6, 2018 Share Posted March 6, 2018 What do you mean by 'destroyElement destorys in all dimensions'? If you created an item by a script it will only be created at one dimension (default dim: 0). Anyway, if you are rather talking about world objects (created by GTA Map) then just set a timer to check the players' dimension. If he is at a dimension where that model should be shown then restoreWorldModel for that certain player otherwise removeWorldModel. What I mean, the timer will check the dimension of the player, if the player is in the right dimension the script will remove the world model for that player and when he moves to another dimension the script will automatically restore the removed model according to his new dimension. 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