Jump to content

Lalalu

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...