SteveDee Posted September 18, 2018 Share Posted September 18, 2018 Hi i've got a little question. Is it possible to remove world objects? So game standard obejcts. I tried with mp.game.object.deleteObject(mp.game.object.getClosestObjectOfType(-28.52094, -2543.323, 5.001884, 1.0, -531344027, false, true, true)); but it doesnt work. Link to comment Share on other sites More sharing options...
Larvell Posted September 19, 2018 Share Posted September 19, 2018 we use (in c#) NAPI.World.DeleteWorldProp(Hash, new Vector3(posX, posY, posZ), (1.0f)); 1 Link to comment Share on other sites More sharing options...
Enerv Posted September 23, 2018 Share Posted September 23, 2018 JavaScript Client-side function:https://wiki.rage.mp/index.php?title=Entity::createModelHide Example of removal of the street lamp within the place of spawn: mp.game.entity.createModelHide(0, 0, 0, 100, mp.game.joaat('prop_streetlight_01'), true); 1 Link to comment Share on other sites More sharing options...
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