Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(hide train functison)
(Add spawnVehicleFlyingComponent)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
*[[addVehicleSirens]]
<includeonly>
*[[addVehicleUpgrade]]
<ul>
*[[attachTrailerToVehicle]]
{{#if: {{{1|}}}
*[[blowVehicle]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[createVehicle]]
|
*[[detachTrailerFromVehicle]]
    <!-- CLIENT functions -->
*[[fixVehicle]]
    <li>[[areVehicleLightsOn]]</li>
*[[getModelHandling]]
    <li>[[getHeliBladeCollisionsEnabled]]</li>
*[[getOriginalHandling]]
    <li>[[getHelicopterRotorSpeed]]</li>
*[[getTrainDirection]]
    {{New feature/item|3.0161|1.6.0|22344|
*[[getTrainPosition]]
    <li>[[getVehicleRotorSpeed]]</li>
*[[getTrainSpeed]]
    }}
<!-- {{New items|3.0160|1.6|
    <li>[[getVehicleAdjustableProperty]]</li>
*[[getTrainTrack]]
    <li>[[getVehicleComponentPosition]]</li>
|7485}} -->
    <li>[[getVehicleComponentRotation]]</li>
*[[getVehicleColor]]
    <li>[[getVehicleComponents]]</li>
*[[getVehicleCompatibleUpgrades]]
    <li>[[getVehicleComponentScale]]</li>
*[[getVehicleController]]
    <li>[[getVehicleComponentVisible]]</li>
*[[getVehicleDoorOpenRatio]]
    <li>[[getVehicleCurrentGear]]</li>
*[[getVehicleDoorState]]
    <li>[[getVehicleDummyPosition]]</li>
*[[getVehicleEngineState]]
    {{New items|3.0161|1.6.0|
*[[getVehicleHandling]]
    <li>[[getVehicleEntryPoints]]</li>
*[[getVehicleHeadLightColor]]
    |22649}}
*[[getVehicleLandingGearDown]]
    <li>[[getVehicleGravity]]</li>
*[[getVehicleLightState]]
    <li>[[getVehicleLandingGearDown]]</li>
*[[getVehicleMaxPassengers]]
    <li>[[getVehicleModelDummyDefaultPosition]]</li>
*[[getVehicleModelFromName]]
    <li>[[getVehicleModelDummyPosition]]</li>
*[[getVehicleName]]
    <li>[[getVehicleModelExhaustFumesPosition]]</li>
*[[getVehicleNameFromModel]]
    <li>[[getVehicleModelWheelSize]]</li>
*[[getVehicleOccupant]]
    <li>[[getVehicleNitroCount]]</li>
*[[getVehicleOccupants]]
    <li>[[getVehicleNitroLevel]]</li>
*[[getVehicleOverrideLights]]
    <li>[[getVehicleWheelFrictionState]]</li>
*[[getVehiclePaintjob]]
    <li>[[getVehicleWheelScale]]</li>
*[[getVehiclePanelState]]
    <li>[[isTrainChainEngine]]</li>
*[[getVehiclePlateText]]
    <li>[[isVehicleNitroActivated]]</li>
{{New items|3.0156|1.5.5|
    <li>[[isVehicleNitroRecharging]]</li>
*[[getVehicleRespawnPosition]]
    <li>[[isVehicleOnGround]]</li>
*[[getVehicleRespawnRotation]]
    <li>[[isVehicleWheelOnGround]]</li>
|14053}}
    <li>[[isVehicleWindowOpen]]</li>
*[[getVehicleSirenParams]]
    <li>[[resetVehicleComponentPosition]]</li>
*[[getVehicleSirens]]
    <li>[[resetVehicleComponentRotation]]</li>
*[[getVehicleSirensOn]]
    <li>[[resetVehicleComponentScale]]</li>
*[[getVehicleTowedByVehicle]]
    <li>[[resetVehicleDummyPositions]]</li>
*[[getVehicleTowingVehicle]]
    <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>
}}
 
<!-- SHARED functions-->
<li>[[addVehicleUpgrade]]</li>
<li>[[attachTrailerToVehicle]]</li>
<li>[[blowVehicle]]</li>
<li>[[createVehicle]]</li>
<li>[[detachTrailerFromVehicle]]</li>
<li>[[fixVehicle]]</li>
<li>[[getOriginalHandling]]</li>
<li>[[getTrainDirection]]</li>
<li>[[getTrainPosition]]</li>
<li>[[getTrainSpeed]]</li>
<li>[[getTrainTrack]]</li>
<li>[[getVehicleColor]]</li>
<li>[[getVehicleCompatibleUpgrades]]</li>
<li>[[getVehicleController]]</li>
<li>[[getVehicleDoorOpenRatio]]</li>
<li>[[getVehicleDoorState]]</li>
<li>[[getVehicleEngineState]]</li>
<li>[[getVehicleHandling]]</li>
<li>[[getVehicleHeadLightColor]]</li>
<li>[[getVehicleLandingGearDown]]</li>
<li>[[getVehicleLightState]]</li>
<li>[[getVehicleMaxPassengers]]</li>
<li>[[getVehicleModelFromName]]</li>
<li>[[getVehicleName]]</li>
<li>[[getVehicleNameFromModel]]</li>
<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|
{{Deprecated items|3.0156|1.5.6|
*[[getVehicleTurnVelocity]]
<li>[[getVehicleTurnVelocity]]</li>
}}
}}
*[[getVehicleTurretPosition]]
<li>[[getVehicleType]]</li>
*[[getVehicleType]]
<li>[[getVehicleUpgradeOnSlot]]</li>
*[[getVehicleUpgradeOnSlot]]
<li>[[getVehicleUpgradeSlotName]]</li>
*[[getVehicleUpgradeSlotName]]
<li>[[getVehicleUpgrades]]</li>
*[[getVehicleUpgrades]]
<li>[[getVehicleVariant]]</li>
*[[getVehicleVariant]]
<li>[[getVehicleWheelStates]]</li>
*[[getVehicleWheelStates]]
<li>[[isTrainDerailable]]</li>
*[[getVehiclesOfType]]
<li>[[isTrainDerailed]]</li>
*[[isTrainDerailable]]
<li>[[isVehicleBlown]]</li>
*[[isTrainDerailed]]
<li>[[isVehicleDamageProof]]</li>
*[[isVehicleBlown]]
<li>[[isVehicleFuelTankExplodable]]</li>
*[[isVehicleDamageProof]]
<li>[[isVehicleLocked]]</li>
*[[isVehicleFuelTankExplodable]]
<li>[[isVehicleOnGround]]</li>
*[[isVehicleLocked]]
<li>[[isVehicleTaxiLightOn]]</li>
*[[isVehicleOnGround]]
<li>[[removeVehicleUpgrade]]</li>
*[[isVehicleTaxiLightOn]]
<li>[[setTrainDerailable]]</li>
*[[removeVehicleSirens]]
<li>[[setTrainDerailed]]</li>
*[[removeVehicleUpgrade]]
<li>[[setTrainDirection]]</li>
*[[resetVehicleExplosionTime]]
<li>[[setTrainPosition]]</li>
*[[resetVehicleIdleTime]]
<li>[[setTrainSpeed]]</li>
*[[respawnVehicle]]
<li>[[setTrainTrack]]</li>
*[[setModelHandling]]
<li>[[setVehicleColor]]</li>
*[[setTrainDerailable]]
<li>[[setVehicleDamageProof]]</li>
*[[setTrainDerailed]]
<li>[[setVehicleDoorOpenRatio]]</li>
*[[setTrainDirection]]
<li>[[setVehicleDoorState]]</li>
*[[setTrainPosition]]
<li>[[setVehicleDoorsUndamageable]]</li>
*[[setTrainSpeed]]
<li>[[setVehicleEngineState]]</li>
<!-- {{New items|3.0160|1.6|
<li>[[setVehicleFuelTankExplodable]]</li>
*[[setTrainTrack]]
<li>[[setVehicleHandling]]</li>
|7485}} -->
<li>[[setVehicleHeadLightColor]]</li>
*[[setVehicleColor]]
<li>[[setVehicleLandingGearDown]]</li>
*[[setVehicleDamageProof]]
<li>[[setVehicleLightState]]</li>
*[[setVehicleDoorOpenRatio]]
<li>[[setVehicleLocked]]</li>
*[[setVehicleDoorState]]
<li>[[setVehicleOverrideLights]]</li>
*[[setVehicleDoorsUndamageable]]
<li>[[setVehiclePaintjob]]</li>
*[[setVehicleEngineState]]
<li>[[setVehiclePanelState]]</li>
*[[setVehicleFuelTankExplodable]]
<li>[[setVehiclePlateText]]</li>
*[[setVehicleHandling]]
<li>[[setVehicleSirens]]</li>
*[[setVehicleHeadLightColor]]
<li>[[setVehicleSirensOn]]</li>
*[[setVehicleIdleRespawnDelay]]
<li>[[setVehicleTaxiLightOn]]</li>
*[[setVehicleLandingGearDown]]
*[[setVehicleLightState]]
*[[setVehicleLocked]]
*[[setVehicleOverrideLights]]
*[[setVehiclePaintjob]]
*[[setVehiclePanelState]]
*[[setVehiclePlateText]]
*[[setVehicleRespawnDelay]]
*[[setVehicleRespawnPosition]]
{{New items|3.0156|1.5.5|
*[[setVehicleRespawnRotation]]
|14280}}
*[[setVehicleSirens]]
*[[setVehicleSirensOn]]
*[[setVehicleTaxiLightOn]]
*[[setVehicleTurretPosition]]
{{Deprecated items|3.0156|1.5.6|
{{Deprecated items|3.0156|1.5.6|
*[[setVehicleTurnVelocity]]
<li>[[setVehicleTurnVelocity]]</li>
}}
}}
*[[setVehicleVariant]]
<li>[[setVehicleTurretPosition]]</li>
*[[setVehicleWheelStates]]
<li>[[setVehicleVariant]]</li>
*[[spawnVehicle]]
<li>[[setVehicleWheelStates]]</li>
*[[toggleVehicleRespawn]]
{{New items|3.0161|1.6.0|
<li>[[spawnVehicleFlyingComponent]]</li>
|22771}}
</ul>
</includeonly>


<noinclude>[[Category:Functions templates]]</noinclude>
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

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.