Chris_Canfield Posted February 21, 2010 Share Posted February 21, 2010 Ok so I have car mods and skin mods but how would I replace rims? (aka tires) Eg of skin mod function onResourceStart() --BREEN BREEN = engineLoadTXD ( "skins/113.txd" ) engineImportTXD ( BREEN, 113 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) Eg of car mod function installAuto ( startedResource ) if ( startedResource == getThisResource() ) then txd = engineLoadTXD ( "data/copcarvg.txd" ) engineImportTXD ( txd, 598 ) dff = engineLoadDFF ( "data/copcarvg.dff", 598 ) engineReplaceModel ( dff, 598 ) end end addEventHandler ( "onClientResourceStart", getRootElement(), installAuto ) So what would I do to make a tire mod? Link to comment
50p Posted February 21, 2010 Share Posted February 21, 2010 In order to replace texture of a model you have to know its ID. Skins are models from 0 to 288. If wheel's ID is in that range then it won't replace the wheels texture but skin (character) with specified ID. Link to comment
Chris_Canfield Posted February 22, 2010 Author Share Posted February 22, 2010 In order to replace texture of a model you have to know its ID. Skins are models from 0 to 288. If wheel's ID is in that range then it won't replace the wheels texture but skin (character) with specified ID. So I would do: function installAuto ( startedResource ) if ( startedResource == getThisResource() ) then txd = engineLoadTXD ( "data/wheeltexture.txd" ) engineImportTXD ( txd, idofwheelhere ) dff = engineLoadDFF ( "data/wheeltexture.dff", andhere ) engineReplaceModel ( dff, alsohere ) end end addEventHandler ( "onClientResourceStart", getRootElement(), installAuto ) ? Link to comment
50p Posted February 22, 2010 Share Posted February 22, 2010 You would not. Didn't I make myself clear? If wheels model ID is the same as different objects in GTA then you won't replace it. Besides, if you've read wiki you'd know you can only replace vehicles and objects. This function replaces the given model in the given model ID with the DFF file passed. This function supports vehicles and objects at the moment. Link to comment
Chris_Canfield Posted February 22, 2010 Author Share Posted February 22, 2010 You would not. Didn't I make myself clear? If wheels model ID is the same as different objects in GTA then you won't replace it. Besides, if you've read wiki you'd know you can only replace vehicles and objects.This function replaces the given model in the given model ID with the DFF file passed. This function supports vehicles and objects at the moment. mhm but in a youtube video I saw them replacing wheels, so therefor, it is possible. Link to comment
Jason_Gregory Posted February 22, 2010 Share Posted February 22, 2010 Is there a Way to Replace Skin ID: 0´s Skin without compiling the whole Mta ? Link to comment
ChaseOquinn Posted February 22, 2010 Share Posted February 22, 2010 That video u seen they where replaceing car mods not replaceing rims most car mods come with custom rims Link to comment
Maccer. Posted February 23, 2010 Share Posted February 23, 2010 You would not. Didn't I make myself clear? If wheels model ID is the same as different objects in GTA then you won't replace it. Besides, if you've read wiki you'd know you can only replace vehicles and objects.This function replaces the given model in the given model ID with the DFF file passed. This function supports vehicles and objects at the moment. mhm but in a youtube video I saw them replacing wheels, so therefor, it is possible. Wheels are objects, just find the I.D 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