Jump to content

remove realworldobject


A3kri

Recommended Posts

Posted

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

Posted

Topic moved to "Scripting" section.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
A 5mil radius is actually long, don't you think?

try lowering it down

do u mean this ?

engineSetModelLODDistance(4828, 500) 
  

if so .. do i lower it to 100 ?

Posted

Ook thanks .. ill try it

  
removeWorldModel(4942,100000,1469.9957275391,-2291.0270996094,14.690351486206) 
removeWorldModel(4828,100000,1469.9957275391,-2291.0270996094,14.690351486206) 
  

Posted
nah, I meant the
removeWorldObject 

try lowering the 2nd argument to 100k - 100000.

Oh... Why 100,000? Enough even 3000.

 #define if while#define TRUE FALSE// problems?
Posted
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.

 #define if while#define TRUE FALSE// problems?
Posted
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 !!

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