SpawnVehicle: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Server function}}
{{Server function}}
__NOTOC__
__NOTOC__
Respawns a vehicle to where it first spawned.
Spawns a vehicle at any given position and rotation


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool respawnVehicle ( vehicle theVehicle )
bool spawnVehicle ( vehicle theVehicle, x, y, z, rx, ry, rz )
</syntaxhighlight>  
</syntaxhighlight>  



Revision as of 01:10, 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

Shared