Sign in to follow this  
Dev

removeWorldModel not working?

Recommended Posts

Hey there,

I'm trying to use removeWorldModel server side to remove a desk ( ID: 2198 ) placed in interior 0 & dimension 200. The script is working fine, but it's not removing the object at all. There's no error in /debugscript 3 and I'm running the script in map editor.

Server Side:

  
addEventHandler ( 'onResourceStart', resourceRoot, 
    function ( ) 
         
        outputChatBox ( 'Resource working!', getRandomPlayer( ), 0, 255, 0 ) -- Outputs fine. 
        removeWorldModel ( 2198, 20.00, 234.169921875, 122.7529296875, 1003.21875, 0 ) 
    end 
) 
  

Meta:

  
<meta> 
    <min_mta_version server="1.2.0-9.03618" client="1.2.0-9.03618" /> 
     
    <script src='server.lua' type='server'/> 
</meta> 
  

Share this post


Link to post

Nevermind, the object was actually in interior 10, it's working now.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.