Useryy Posted July 21, 2014 Share Posted July 21, 2014 Hey i would like to ask you guys is it possible to add a custom object (a map ramp http://www.k-dst.de/bilder/Ramps/RampT2.jpg) without replace any other object ? if yes how ? i tryed : local ObjDFF = engineLoadDFF("Modifikations/Objects/Ramps/FunBoxRamp2.dff", 0) engineReplaceModel(ObjDFF, 18631) why i tryed 18631 is because 18630 is the last object in gta_sa Link to comment
Tails Posted July 22, 2014 Share Posted July 22, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now