Jump to content

remove realworldobject


A3kri

Recommended Posts

Hello,

I want to remove the la airport to replace it with another custom airport

i used https://wiki.multitheftauto.com/wiki/RemoveWorldModel,

but when i start it , the games bugs .. when u walk or drive on the road u fall in no where :l

  
addEventHandler('onClientResourceStart', resourceRoot, 
        function() 
        restoreAllWorldModels() 
removeWorldModel(4942,5000000,1469.9957275391,-2291.0270996094,14.690351486206) 
removeWorldModel(4828,5000000,1469.9957275391,-2291.0270996094,14.690351486206) 
            createObject ( 4828, 1481, -2300.1999511719, 12.5, 0, 0, 0 )                  
            outputChatBox ( "New airport is loading .. please be patient =)")     
            setTimer ( customObject, 200, 1) 
            setOcclusionsEnabled(false) 
        end 
    ) 
  
function customObject () 
 local txd = engineLoadTXD('files/air.txd',true) 
 engineImportTXD(txd, 4828)     
 local dff = engineLoadDFF('files/air.dff', 0) 
 engineReplaceModel(dff, 4828) 
 local col = engineLoadCOL('files/air.col') 
 engineReplaceCOL(col, 4828) 
engineSetModelLODDistance(4828, 500) 
end 
  
  

it's client sided .. if it helps u ...

Link to comment
I'll try 3k and choose the best one .. cuz I don't really know what that means ..

This means radius.

1469.9957275391,-2291.0270996094,14.690351486206 is the center of circle.

This means, thats objects will be removed in 3000 units of center.

Link to comment
I'll try 3k and choose the best one .. cuz I don't really know what that means ..

This means radius.

1469.9957275391,-2291.0270996094,14.690351486206 is the center of circle.

This means, thats objects will be removed in 3000 units of center.

Ooh ,, so 100k was hell big !!

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