BorderLine Posted August 25, 2015 Share Posted August 25, 2015 Hi Everyone, well, i was replacing some models in my server. All this models was replaced for some interior objects. Now i need remove this objets from interior, because new models there is in interior. function removeLights () local version = getVersion() if version.mta >= "1.3.1" then local mdls = {2872,2785,2779,2778,3430,2754,2681,2640,2618,2000,2007,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2029,2046,2063,2064 } for k,v in ipairs(mdls) do removeWorldModel ( v, 10000, 0, 0, 0, 0) end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), removeLights ) Link to comment
t3wz Posted August 25, 2015 Share Posted August 25, 2015 change the last 0 to the interior id that you want. next time check the syntax at the wiki . Link to comment
BorderLine Posted August 25, 2015 Author Share Posted August 25, 2015 I did. I want remove that objets from al interiors. Link to comment
Jusonex Posted August 26, 2015 Share Posted August 26, 2015 The furniture of some interiors (especially the safe houses) is generated randomly. You can use setInteriorFurnitureEnabled to disable this mechanism. 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