marinov327 Posted February 21, 2017 Share Posted February 21, 2017 Hello. I want to know how to add new wheels of vehicles in my server? I do not want to replace the old wheels and to put in new F1 panel / wheel. I want new tires put my, but this code is made here to replace with old tires. I do not want to replace them with old tires and add new ones. How? Quote function replaceModel() txd = engineLoadTXD("wheels/rod.txd", 1074 ) engineImportTXD(txd, 1074) dff = engineLoadDFF("wheels/wheel_gn1.dff", 1074) engineReplaceModel(dff, 1074) txd = engineLoadTXD("wheels/rod.txd", 1075 ) engineImportTXD(txd, 1075) dff = engineLoadDFF("wheels/wheel_gn2.dff", 1075) engineReplaceModel(dff, 1075) txd = engineLoadTXD("wheels/rod.txd", 1076 ) engineImportTXD(txd, 1076) dff = engineLoadDFF("wheels/wheel_gn3.dff", 1076) engineReplaceModel(dff, 1076) txd = engineLoadTXD("wheels/rod.txd", 1077 ) engineImportTXD(txd, 1077) dff = engineLoadDFF("wheels/wheel_gn4.dff", 1077) engineReplaceModel(dff, 1077) txd = engineLoadTXD("wheels/rod.txd", 1078 ) engineImportTXD(txd, 1078) dff = engineLoadDFF("wheels/wheel_gn5.dff", 1078) engineReplaceModel(dff, 1078) txd = engineLoadTXD("wheels/rod.txd", 1079 ) engineImportTXD(txd, 1079) dff = engineLoadDFF("wheels/wheel_lr1.dff", 1079) engineReplaceModel(dff, 1079) txd = engineLoadTXD("wheels/rod.txd", 1080 ) engineImportTXD(txd, 1080) dff = engineLoadDFF("wheels/wheel_lr2.dff", 1080) engineReplaceModel(dff, 1080) txd = engineLoadTXD("wheels/rod.txd", 1081 ) engineImportTXD(txd, 1081) dff = engineLoadDFF("wheels/wheel_lr3.dff", 1081) engineReplaceModel(dff, 1081) txd = engineLoadTXD("wheels/wheel_lr4.txd", 1082 ) engineImportTXD(txd, 1082) dff = engineLoadDFF("wheels/wheel_lr4.dff", 1082) engineReplaceModel(dff, 1082) txd = engineLoadTXD("wheels/wheel_lr5.txd", 1083) engineImportTXD(txd, 1083) dff = engineLoadDFF("wheels/wheel_lr5.dff", 1083) engineReplaceModel(dff, 1083) txd = engineLoadTXD("wheels/wheel_or1.txd", 1025) engineImportTXD(txd, 1083) dff = engineLoadDFF("wheels/wheel_or1.dff", 1025) engineReplaceModel(dff, 1025) txd = engineLoadTXD("wheels/wheel_sr1.txd", 1084 ) engineImportTXD(txd, 1084) dff = engineLoadDFF("wheels/wheel_sr1.dff", 1084) engineReplaceModel(dff, 1084) txd = engineLoadTXD("wheels/wheel_sr2.txd", 1085 ) engineImportTXD(txd, 1085) dff = engineLoadDFF("wheels/wheel_sr2.dff", 1085) engineReplaceModel(dff, 1085) txd = engineLoadTXD("wheels/wheel_sr3.txd", 1096 ) engineImportTXD(txd, 1096) dff = engineLoadDFF("wheels/wheel_sr3.dff", 1096) engineReplaceModel(dff, 1096) txd = engineLoadTXD("wheels/wheel_sr4.txd", 1097 ) engineImportTXD(txd, 1097) dff = engineLoadDFF("wheels/wheel_sr4.dff", 1097) engineReplaceModel(dff, 1097) txd = engineLoadTXD("wheels/wheel_sr5.txd", 1098 ) engineImportTXD(txd, 1097) dff = engineLoadDFF("wheels/wheel_sr5.dff", 1098) engineReplaceModel(dff, 1098) txd = engineLoadTXD("wheels/wheel_sr6.txd", 1073 ) engineImportTXD(txd, 1097) dff = engineLoadDFF("wheels/wheel_sr6.dff", 1073) engineReplaceModel(dff, 1073) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) 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