SpawnVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Removing all content from page)
No edit summary
Line 1: Line 1:
{{Server function}}
__NOTOC__
Spawns a vehicle at any given position and rotation


==Syntax==
<syntaxhighlight lang="lua">
bool spawnVehicle ( vehicle theVehicle, x, y, z, rx, ry, rz )
</syntaxhighlight>
===Required Arguments===
*'''theVehicle:''' The vehicle you wish to respawn
===Returns===
Returns ''true'' if the vehicle respawned successfully, ''false'' if the passed argument does not exist or is not a vehicle.
==Example==
<!-- Explain what the example is in a single sentance -->
This example does...
<!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized -->
<syntaxhighlight lang="lua">
--This line does...
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
==See Also==
<!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
{{Vehicle functions}}
[[Category:Incomplete]]

Revision as of 01:58, 15 October 2007

Spawns a vehicle at any given position and rotation

Syntax

bool spawnVehicle ( vehicle theVehicle, x, y, z, rx, ry, rz )

Required Arguments

  • theVehicle: The vehicle you wish to respawn

Returns

Returns true if the vehicle respawned successfully, false if the passed argument does not exist or is not a vehicle.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also