Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Add spawnVehicleFlyingComponent)
 
(94 intermediate revisions by 41 users not shown)
Line 1: Line 1:
*[[blowVehicle]]
<includeonly>
*[[createVehicle]]
<ul>
*[[fixVehicle]]
{{#if: {{{1|}}}
*[[respawnVehicle]]
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[areVehicleLightsOn]]</li>
    <li>[[getHeliBladeCollisionsEnabled]]</li>
    <li>[[getHelicopterRotorSpeed]]</li>
    {{New feature/item|3.0161|1.6.0|22344|
    <li>[[getVehicleRotorSpeed]]</li>
    }}
    <li>[[getVehicleAdjustableProperty]]</li>
    <li>[[getVehicleComponentPosition]]</li>
    <li>[[getVehicleComponentRotation]]</li>
    <li>[[getVehicleComponents]]</li>
    <li>[[getVehicleComponentScale]]</li>
    <li>[[getVehicleComponentVisible]]</li>
    <li>[[getVehicleCurrentGear]]</li>
    <li>[[getVehicleDummyPosition]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[getVehicleEntryPoints]]</li>
    |22649}}
    <li>[[getVehicleGravity]]</li>
    <li>[[getVehicleLandingGearDown]]</li>
    <li>[[getVehicleModelDummyDefaultPosition]]</li>
    <li>[[getVehicleModelDummyPosition]]</li>
    <li>[[getVehicleModelExhaustFumesPosition]]</li>
    <li>[[getVehicleModelWheelSize]]</li>
    <li>[[getVehicleNitroCount]]</li>
    <li>[[getVehicleNitroLevel]]</li>
    <li>[[getVehicleWheelFrictionState]]</li>
    <li>[[getVehicleWheelScale]]</li>
    <li>[[isTrainChainEngine]]</li>
    <li>[[isVehicleNitroActivated]]</li>
    <li>[[isVehicleNitroRecharging]]</li>
    <li>[[isVehicleOnGround]]</li>
    <li>[[isVehicleWheelOnGround]]</li>
    <li>[[isVehicleWindowOpen]]</li>
    <li>[[resetVehicleComponentPosition]]</li>
    <li>[[resetVehicleComponentRotation]]</li>
    <li>[[resetVehicleComponentScale]]</li>
    <li>[[resetVehicleDummyPositions]]</li>
    <li>[[setHeliBladeCollisionsEnabled]]</li>
    <li>[[setHelicopterRotorSpeed]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[setVehicleRotorSpeed]]</li>
    |22344}}
    <li>[[setVehicleAdjustableProperty]]</li>
    <li>[[setVehicleComponentPosition]]</li>
    <li>[[setVehicleComponentRotation]]</li>
    <li>[[setVehicleComponentScale]]</li>
    <li>[[setVehicleComponentVisible]]</li>
    <li>[[setVehicleDummyPosition]]</li>
    <li>[[setVehicleGravity]]</li>
    <li>[[setVehicleLandingGearDown]]</li>
    <li>[[setVehicleModelDummyPosition]]</li>
    <li>[[setVehicleModelExhaustFumesPosition]]</li>
    <li>[[setVehicleModelWheelSize]]</li>
    <li>[[setVehicleNitroActivated]]</li>
    <li>[[setVehicleNitroCount]]</li>
    <li>[[setVehicleNitroLevel]]</li>
    <li>[[setVehicleWheelScale]]</li>
    <li>[[setVehicleWheelStates]]</li>
    <li>[[setVehicleWindowOpen]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[setVehicleWheelsRotation]]</li>
    |22592}}
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[addVehicleSirens]]</li>
    <li>[[getModelHandling]]</li>
    <li>[[getVehicleIdleRespawnDelay]]</li>
    <li>[[getVehicleRespawnDelay]]</li>
    <li>[[getVehicleRespawnPosition]]</li>
    <li>[[getVehicleRespawnRotation]]</li>
    <li>[[getVehiclesOfType]]</li>
    <li>[[isVehicleRespawnable]]</li>
    <li>[[removeVehicleSirens]]</li>
    <li>[[resetVehicleExplosionTime]]</li>
    <li>[[resetVehicleIdleTime]]</li>
    <li>[[respawnVehicle]]</li>
    <li>[[setModelHandling]]</li>
    <li>[[setVehicleIdleRespawnDelay]]</li>
    <li>[[setVehicleRespawnDelay]]</li>
    <li>[[setVehicleRespawnPosition]]</li>
    <li>[[setVehicleRespawnRotation]]</li>
    <li>[[spawnVehicle]]</li>
    <li>[[toggleVehicleRespawn]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}


*[[getVehicleColor]]  
<!-- SHARED functions-->
*[[getVehicleHealth]]
<li>[[addVehicleUpgrade]]</li>
*[[getVehicleID]]
<li>[[attachTrailerToVehicle]]</li>
*[[getVehicleIDFromName]]
<li>[[blowVehicle]]</li>
*[[getVehicleIndex]]
<li>[[createVehicle]]</li>
*[[getVehicleMaxPassengers]]
<li>[[detachTrailerFromVehicle]]</li>
*[[getVehicleName]]
<li>[[fixVehicle]]</li>
*[[getVehicleNameFromID]]
<li>[[getOriginalHandling]]</li>
*[[getVehicleOccupant]]
<li>[[getTrainDirection]]</li>
*[[getVehicleController]]
<li>[[getTrainPosition]]</li>
*[[getVehicleRotation]]  
<li>[[getTrainSpeed]]</li>
*[[getVehicleTurnSpeed]]
<li>[[getTrainTrack]]</li>
*[[getVehicleTurretPosition]]
<li>[[getVehicleColor]]</li>
*[[getVehiclesOfType]]
<li>[[getVehicleCompatibleUpgrades]]</li>
*[[getVehicleUpgradeOnSlot]]
<li>[[getVehicleController]]</li>
*[[getVehicleUpgrades]]
<li>[[getVehicleDoorOpenRatio]]</li>
*[[getVehicleUpgradeSlotName]]
<li>[[getVehicleDoorState]]</li>
*[[getVehicleCompatibleUpgrades]]
<li>[[getVehicleEngineState]]</li>
*[[getVehicleDoorState]]
<li>[[getVehicleHandling]]</li>
*[[getVehicleWheelStates]]
<li>[[getVehicleHeadLightColor]]</li>
*[[getVehicleLightState]]
<li>[[getVehicleLandingGearDown]]</li>
*[[getVehicleOverrideLights]]
<li>[[getVehicleLightState]]</li>
*[[getVehicleTowedByVehicle]]
<li>[[getVehicleMaxPassengers]]</li>
*[[getVehicleTowingVehicle]]
<li>[[getVehicleModelFromName]]</li>
*[[getVehiclePaintjob]]
<li>[[getVehicleName]]</li>
*[[getVehicleSirensOn]]
<li>[[getVehicleNameFromModel]]</li>
*[[getVehicleLandingGearDown]]
<li>[[getVehicleOccupant]]</li>
<li>[[getVehicleOccupants]]</li>
<li>[[getVehicleOverrideLights]]</li>
<li>[[getVehiclePaintjob]]</li>
<li>[[getVehiclePanelState]]</li>
<li>[[getVehiclePlateText]]</li>
<li>[[getVehicleSirenParams]]</li>
<li>[[getVehicleSirens]]</li>
<li>[[getVehicleSirensOn]]</li>
<li>[[getVehicleTowedByVehicle]]</li>
<li>[[getVehicleTowingVehicle]]</li>
<li>[[getVehicleTurretPosition]]</li>
{{Deprecated items|3.0156|1.5.6|
<li>[[getVehicleTurnVelocity]]</li>
}}
<li>[[getVehicleType]]</li>
<li>[[getVehicleUpgradeOnSlot]]</li>
<li>[[getVehicleUpgradeSlotName]]</li>
<li>[[getVehicleUpgrades]]</li>
<li>[[getVehicleVariant]]</li>
<li>[[getVehicleWheelStates]]</li>
<li>[[isTrainDerailable]]</li>
<li>[[isTrainDerailed]]</li>
<li>[[isVehicleBlown]]</li>
<li>[[isVehicleDamageProof]]</li>
<li>[[isVehicleFuelTankExplodable]]</li>
<li>[[isVehicleLocked]]</li>
<li>[[isVehicleOnGround]]</li>
<li>[[isVehicleTaxiLightOn]]</li>
<li>[[removeVehicleUpgrade]]</li>
<li>[[setTrainDerailable]]</li>
<li>[[setTrainDerailed]]</li>
<li>[[setTrainDirection]]</li>
<li>[[setTrainPosition]]</li>
<li>[[setTrainSpeed]]</li>
<li>[[setTrainTrack]]</li>
<li>[[setVehicleColor]]</li>
<li>[[setVehicleDamageProof]]</li>
<li>[[setVehicleDoorOpenRatio]]</li>
<li>[[setVehicleDoorState]]</li>
<li>[[setVehicleDoorsUndamageable]]</li>
<li>[[setVehicleEngineState]]</li>
<li>[[setVehicleFuelTankExplodable]]</li>
<li>[[setVehicleHandling]]</li>
<li>[[setVehicleHeadLightColor]]</li>
<li>[[setVehicleLandingGearDown]]</li>
<li>[[setVehicleLightState]]</li>
<li>[[setVehicleLocked]]</li>
<li>[[setVehicleOverrideLights]]</li>
<li>[[setVehiclePaintjob]]</li>
<li>[[setVehiclePanelState]]</li>
<li>[[setVehiclePlateText]]</li>
<li>[[setVehicleSirens]]</li>
<li>[[setVehicleSirensOn]]</li>
<li>[[setVehicleTaxiLightOn]]</li>
{{Deprecated items|3.0156|1.5.6|
<li>[[setVehicleTurnVelocity]]</li>
}}
<li>[[setVehicleTurretPosition]]</li>
<li>[[setVehicleVariant]]</li>
<li>[[setVehicleWheelStates]]</li>
{{New items|3.0161|1.6.0|
<li>[[spawnVehicleFlyingComponent]]</li>
|22771}}
</ul>
</includeonly>


*[[isVehicleLocked]]
<noinclude>
*[[isVehicleFuelTankExplodable]]
{{Functions list info}}
 
[[Category:Functions templates]]</noinclude>
*[[setVehicleColor]]
*[[setVehicleHealth]]
*[[setVehicleLocked]]
*[[setVehicleDoorsUndamageable]]
*[[setVehicleRotation]]
*[[setVehicleTurnSpeed]]
*[[addVehicleUpgrade]]
*[[removeVehicleUpgrade]]
*[[setVehicleDoorState]]
*[[setVehicleWheelStates]]
*[[setVehicleLightState]]
*[[toggleVehicleRespawn]]
*[[setVehicleRespawnDelay]]
*[[setVehicleIdleRespawnDelay]]
*[[setVehicleRespawnPosition]]
*[[setVehicleOverrideLights]]
*[[attachTrailerToVehicle]]
*[[detachTrailerFromVehicle]]
*[[setVehiclePaintjob]]
*[[setVehicleEngineState]]
*[[setVehicleFuelTankExplodable]]
*[[setVehicleSirensOn]]
*[[setVehicleLandingGearDown]]

Latest revision as of 13:42, 15 October 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.