Jump to content

Issue with removeWorldModel


Recommended Posts

Hi to all, I asked almost everyone I know (those who know to script in Lua) how to fix this. Pretty annoying issue, I don't know why It happens.

I made script with removeWorldModel bool. Here is it:

function start() 
      --here should be models that needs to get deleted-- 
end 
addEventHandler("onResourceStart", getResourceRootElement(), start) 

It looks like this above. removeWorldModel is like this for me [model ID] [10] [x] [y] [z] and nothing more. It deletes buildings, but when I reconnect they are back and buildings I loaded in my map are inside those that need to get deleted.

Meta.xml looks like this:

    "Bull" type="script" name="Remove Objs"/> 
    

My MTA version is newest one, I tried the object remover resource, but I don't like it, prefer more the scripting way becuz some of objects can't get deleted.

I'll be thankful If you help me.

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...