SpawnVehicle: Difference between revisions
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
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates