Jump to content

[HELP] Problem removing world model


HeK

Recommended Posts

addEventHandler ("onResourceStart", getRootElement (), 
 function() 
    removeWorldModel(16613, 10, -346.671875, 1595.078125, 79.6640625) --object 
    removeWorldModel(16614, 10, -346.671875, 1595.078125, 79.6640625) --LOD 
end) 

It doesn't remove the object in the map.

Edited by Guest
Link to comment

I was having issues with removeWorldModel too some time ago, so I moved it to client-side (instead of server-side) and eveything worked fine.

addEventHandler ("onClientResourceStart", resourceRoot, 
 function() 
    removeWorldModel(16613, 10, -346.671875, 1595.078125, 79.6640625) --object 
    removeWorldModel(16614, 10, -346.671875, 1595.078125, 79.6640625) --LOD 
end) 

Link to comment

I tried it and it didn't work, the model is still there.

CODE:

addEventHandler ("onClientResourceStart", resourceRoot, 
 function() 
    removeWorldModel(16613, 10, -346.671875, 1595.078125, 79.6640625) --object 
    removeWorldModel(16614, 10, -346.671875, 1595.078125, 79.6640625) --LOD 
end) 

META:

  

Link to comment

Try

Code

  
removeWorldModel(16613, 200, -346.671875, 1595.078125, 79.6640625) --object 
removeWorldModel(16614, 200, -346.671875, 1595.078125, 79.6640625) --LOD 
  

Meta

    
 
      
    

I had same problem, if you use it client side then you shouldn't use eventhandler and function just removeWorldModel

Edited by Guest
Link to comment

No I tried it already, for some reason if it works for you in server side that means it won't work for some other people. I guess it's a MTA bug so better make it client side and just place removeWorldModel without any functions or events. Correct if I'm wrong but that's what I realised

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