Jump to content

object ID (add a custom object)


Useryy

Recommended Posts

Hi useryy,

It is not possible to add custom objects without replacing an existing one.

I recommend you replace one of the objects from the Liberty City mission in GTA:SA. You can find them if you search for 'lib'.

Here's some code that I use to replace objects:

addEventHandler("onClientResourceStart", resourceRoot, 
function()  
        dff = engineLoadDFF ( "object.dff", 7643) 
        engineReplaceModel ( dff, 7643) 
        col = engineLoadCOL( "object.col" ) 
        engineReplaceCOL( col, 7643 ) 
end  
) 

addEventHandler("onClientResourceStart", resourceRoot, 
function() 
    TXD = engineLoadTXD ( "texture.txd" ) 
    engineImportTXD ( TXD, 7643 ) 
    engineSetModelLODDistance ( 7643, 300 ) 
end 
) 

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