Jump to content

How to create a Script with handling???


ginco

Recommended Posts

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

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

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