Resource:Handling Editor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 52: Line 52:
Returns '''true''' if the handling was set successfully, '''false''' otherwise.
Returns '''true''' if the handling was set successfully, '''false''' otherwise.
</section>
</section>
You can call them from another resource using call()
<syntaxhighlight lang="lua">
call ( getResourceFromName ( "hedit" ), "importVehicleHandling", theVehicle, theTable )
-- Note that this syntax is also valid
exports.hedit:importVehicleHandling(theVehicle, theTable)
</syntaxhighlight>

Revision as of 15:20, 11 May 2011

The handling editor is an open source handling editor for the MTA 1.1 handling branch. The handling editor is also known as heditor or ahe. The resource is currently in production and latest unstable can found at Google Code >>> Trunk.

Links

Name Link
Google Code Page http://www.code.google.com/p/hedit/
Forum Topic http://forum.mtasa.com/viewtopic.php?f=108&t=30494

Users

Name Role
Remi-X Owner
Qais Committer

Exported Functions/Events

Click to collapse [-]
Server and Client

Functions

This function is used to import the handling set of all vehicles with the specified model ID.

bool importModelHandling( int modelID, table data )

modelID: The model id of what you want to import all handling data to (integer) data: The data of which you wish the handling of the vehicle to (table)

Returns true if the handling was set successfully, false otherwise.


This function is used to import the handling set of a desired vehicle.

bool importVehicleHandling ( vehicle theVehicle, table data )

theVehicle: The vehicle you wish to set the handling of (element) data: The data of which you wish the handling of the vehicle to (table)

Returns true if the handling was set successfully, false otherwise.

You can call them from another resource using call()

call ( getResourceFromName ( "hedit" ), "importVehicleHandling", theVehicle, theTable )

-- Note that this syntax is also valid
exports.hedit:importVehicleHandling(theVehicle, theTable)