RespawnVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
 
No edit summary
Line 1: Line 1:
#REDIRECT [[SpawnVehicle]]
{{Server function}}
__NOTOC__
This function respawns a vehicle according to its set respawn position, set by [[setVehicleRespawnPosition]].  To spawn to a specific location, [[spawnVehicle]] can be used..
 
==Syntax==
<syntaxhighlight lang="lua">
bool respawnVehicle ( vehicle theVehicle )
</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==
{{Vehicle functions}}
[[Category:Needs_Example]]

Revision as of 23:18, 9 December 2007

This function respawns a vehicle according to its set respawn position, set by setVehicleRespawnPosition. To spawn to a specific location, spawnVehicle can be used..

Syntax

bool respawnVehicle ( vehicle theVehicle )

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