ginco Posted June 14, 2010 Share Posted June 14, 2010 Hello Im [NFS]ProStreeT and i want to add a handling or vehicles.ide in my script so that we can have a drifting handling for a car. Please anyone pls reply ASAP i really need it now for our server any help is greatly appreciated. Our Clan Site Need4Speedclan.tk My Car script function replaceModel() txd = engineLoadTXD("car/textur.txd", 477 ) engineImportTXD(txd, 477) dff = engineLoadDFF("car/model.dff", 477 ) engineReplaceModel(dff, 477) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) Link to comment
loler Posted June 14, 2010 Share Posted June 14, 2010 Ok , you want to replace cars , right? Try this: function ReplaceVehicle ( ) outputChatBox ( "> replacing the euros vehicle" ) txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) type replace veh in F8 and do you read from wiki? Forgot you need to make a folder in resource named "data" and there to put the .txd and .dff Link to comment
dzek (varez) Posted June 14, 2010 Share Posted June 14, 2010 loler, if you can't read, don't try to, because your results are bad.. ginco - there's no way to change handling yet, it will be available in MTA 1.1 version.. Link to comment
ginco Posted June 14, 2010 Author Share Posted June 14, 2010 loler, if you can't read, don't try to, because your results are bad..ginco - there's no way to change handling yet, it will be available in MTA 1.1 version.. Men I cant wait for it!!! Link to comment
ginco Posted June 14, 2010 Author Share Posted June 14, 2010 Ok , you want to replace cars , right?Try this: function ReplaceVehicle ( ) outputChatBox ( "> replacing the euros vehicle" ) txd = engineLoadTXD ( "data/euros.txd" ) engineImportTXD ( txd, 587 ) dff = engineLoadDFF ( "data/euros.dff", 587 ) engineReplaceModel ( dff, 587 ) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) type replace veh in F8 and do you read from wiki? Forgot you need to make a folder in resource named "data" and there to put the .txd and .dff yh i want, and i know it already so thanks anyway...... 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