SpawnVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__  
{{Server function}}
Respawns vehicles to where they were first spawned.
__NOTOC__
Respawns a vehicle to where it first spawned.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool respawnVehicle ( vehicle thevehicle )
bool respawnVehicle ( vehicle theVehicle )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''thevehicle:''' The vehicle you wish to respawn
*'''theVehicle:''' The vehicle you wish to respawn


===Returns===
===Returns===

Revision as of 14:56, 16 August 2007

Respawns a vehicle to where it first spawned.

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

Shared