Jump to content

How to add custom wheels to a mtaserver?


Recommended Posts

Since i'm a good guy, ill give you the scripts:

meta.xml

    "Threule" version="1" type="script" /> 
    

wheel.lua

function replaceModel()   
  txd = engineLoadTXD("wheel/Fm3_Wheels.txd", 1082 ) 
  engineImportTXD(txd, 1082) 
  
  dff = engineLoadDFF("wheel/wheel_gn1.dff", 1082 ) 
  engineReplaceModel(dff, 1082) 
   
  dff = engineLoadDFF("wheel/wheel_gn2.dff", 1085 ) 
  engineReplaceModel(dff, 1085) 
  
  dff = engineLoadDFF("wheel/wheel_gn3.dff", 1096 ) 
  engineReplaceModel(dff, 1096) 
  
  dff = engineLoadDFF("wheel/wheel_gn4.dff", 1097 ) 
  engineReplaceModel(dff, 1097) 
  
  dff = engineLoadDFF("wheel/wheel_gn5.dff", 1098 ) 
  engineReplaceModel(dff, 1098) 
  
  dff = engineLoadDFF("wheel/wheel_sr1.dff", 1079 ) 
  engineReplaceModel(dff, 1079) 
  
  dff = engineLoadDFF("wheel/wheel_sr2.dff", 1075 ) 
  engineReplaceModel(dff, 1075) 
  
  dff = engineLoadDFF("wheel/wheel_sr3.dff", 1074 ) 
  engineReplaceModel(dff, 1074) 
  
  dff = engineLoadDFF("wheel/wheel_sr4.dff", 1081 ) 
  engineReplaceModel(dff, 1081) 
  
  dff = engineLoadDFF("wheel/wheel_sr5.dff", 1080 ) 
  engineReplaceModel(dff, 1080) 
  
  dff = engineLoadDFF("wheel/wheel_sr6.dff", 1073 ) 
  engineReplaceModel(dff, 1073) 
  
  dff = engineLoadDFF("wheel/wheel_lr1.dff", 1077 ) 
  engineReplaceModel(dff, 1077) 
  
  dff = engineLoadDFF("wheel/wheel_lr2.dff", 1083 ) 
  engineReplaceModel(dff, 1083) 
  
  dff = engineLoadDFF("wheel/wheel_lr3.dff", 1078 ) 
  engineReplaceModel(dff, 1078) 
  
  dff = engineLoadDFF("wheel/wheel_lr4.dff", 1076 ) 
  engineReplaceModel(dff, 1076) 
  
  dff = engineLoadDFF("wheel/wheel_lr5.dff", 1084 ) 
  engineReplaceModel(dff, 1084) 
  
  dff = engineLoadDFF("wheel/wheel_or1.dff", 1025 ) 
  engineReplaceModel(dff, 1025) 
  
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
  
addCommandHandler ( "reloadwheel", replaceModel ) 

I have all the parts on a folder, for organization stuff. Also maybe the txd isnt named "Fm3_Wheels.txd", because i downloaded a forza 3 pack, change that by the name of the txd you are using (if you arent using the same wheel pack i use)

If you just use the HD default wheels, remove the txd line.

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