Lalalu Posted December 30, 2023 Share Posted December 30, 2023 Hello everyone, i was wondering if there's a way to make some models exceptions on this code, that is supposed to delete all GTA default models but i need the ints to not be deleted so i want to know how can i make exceptions for some interior models.. addEventHandler("onResourceStart", resourceRoot, function() for i=550, 20000 do removeWorldModel(i, 10000, 0, 0, 0) setOcclusionsEnabled(false) end end) Link to comment
MissCrow Posted December 31, 2023 Share Posted December 31, 2023 Sure, try this addEventHandler("onResourceStart", resourceRoot, function() for i=550, 20000 do removeWorldModel(i, 10000, 0, 0, 0, 0) setOcclusionsEnabled(false) end end) Yw Link to comment
Tekken Posted December 31, 2023 Share Posted December 31, 2023 Add a table with the interiors you don’t want to delete and do a check before like this local table = { 600, 610, 679 } -- add here addEventHandler("onResourceStart", resourceRoot, function() for i=550, 20000 do if not table[i] then removeWorldModel(i, 10000, 0, 0, 0, 0) setOcclusionsEnabled(false) end end end) 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