Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (fix versions setTrainTrack/Position)
(Rework)
(17 intermediate revisions by 7 users not shown)
Line 1: Line 1:
*[[createVehicle]]
<includeonly>
*[[addVehicleSirens]]
<ul>
*[[removeVehicleSirens]]
{{#if: {{{1|}}}
*[[removeVehicleUpgrade]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[addVehicleUpgrade]]
|
*[[attachTrailerToVehicle]]
    <!-- CLIENT functions -->
*[[blowVehicle]]
    <li>[[areVehicleLightsOn]]</li>
*[[detachTrailerFromVehicle]]
    <li>[[getHeliBladeCollisionsEnabled]]</li>
*[[fixVehicle]]
    <li>[[getHelicopterRotorSpeed]]</li>
*[[resetVehicleExplosionTime]]
    {{New feature/item|3.0161|1.6.0|22344|
*[[resetVehicleIdleTime]]
    <li>[[getVehicleRotorSpeed]]</li>
*[[respawnVehicle]]
    }}
*[[spawnVehicle]]
    <li>[[getVehicleAdjustableProperty]]</li>
*[[toggleVehicleRespawn]]
    <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>
}}


*[[isTrainChainEngine]]
<!-- SHARED functions-->
*[[isTrainDerailable]]
<li>[[addVehicleUpgrade]]</li>
*[[isTrainDerailed]]
<li>[[attachTrailerToVehicle]]</li>
*[[isVehicleBlown]]
<li>[[blowVehicle]]</li>
*[[isVehicleTaxiLightOn]]
<li>[[createVehicle]]</li>
*[[isVehicleDamageProof]]
<li>[[detachTrailerFromVehicle]]</li>
*[[isVehicleFuelTankExplodable]]
<li>[[fixVehicle]]</li>
*[[isVehicleLocked]]
<li>[[getOriginalHandling]]</li>
*[[isVehicleOnGround]]
<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|
<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>
</ul>
</includeonly>


*[[getTrainDirection]]
<noinclude>
*[[getTrainSpeed]]
{{Functions list info}}
{{New items|3.0160|1.6|
[[Category:Functions templates]]</noinclude>
*[[getTrainTrack]]
|7485}}
{{New items|3.0153|1.5.3|
*[[getTrainPosition]]
|7485}}
*[[getVehicleColor]]
*[[getVehicleCompatibleUpgrades]]
*[[getVehicleController]]
*[[getVehicleDoorState]]
*[[getVehicleEngineState]]
*[[getVehicleLandingGearDown]]
*[[getVehicleLightState]]
*[[getVehicleMaxPassengers]]
*[[getVehicleName]]
*[[getVehicleOccupant]]
*[[getVehicleOccupants]]
*[[getVehicleOverrideLights]]
*[[getVehiclePaintjob]]
*[[getVehiclePanelState]]
*[[getVehiclePlateText]]
*[[getVehicleSirensOn]]
*[[getVehiclesOfType]]
*[[getVehicleTowedByVehicle]]
*[[getVehicleTowingVehicle]]
*[[getVehicleTurnVelocity]]
*[[getVehicleTurretPosition]]
*[[getVehicleType]]
*[[getVehicleUpgradeOnSlot]]
*[[getVehicleUpgrades]]
*[[getVehicleUpgradeSlotName]]
*[[getVehicleWheelStates]]
*[[getVehicleDoorOpenRatio]]
*[[getVehicleHandling]]
*[[getModelHandling]]
*[[getOriginalHandling]]
*[[getVehicleHeadLightColor]]
*[[getVehicleModelFromName]]
*[[getVehicleNameFromModel]]
*[[getVehicleVariant]]
*[[getVehicleSirenParams]]
*[[getVehicleSirens]]
 
*[[setModelHandling]]
*[[setTrainDerailable]]
*[[setTrainDerailed]]
*[[setTrainDirection]]
*[[setTrainSpeed]]
{{New items|3.0160|1.6|
*[[setTrainTrack]]
|7485}}
{{New items|3.0153|1.5.3|
*[[setTrainPosition]]
|7485}}
*[[setVehicleColor]]
*[[setVehicleDamageProof]]
*[[setVehicleDoorState]]
*[[setVehicleDoorsUndamageable]]
*[[setVehicleEngineState]]
*[[setVehicleFuelTankExplodable]]
*[[setVehicleIdleRespawnDelay]]
*[[setVehicleLandingGearDown]]
*[[setVehicleLightState]]
*[[setVehicleLocked]]
*[[setVehicleOverrideLights]]
*[[setVehiclePaintjob]]
*[[setVehiclePanelState]]
*[[setVehiclePlateText]]
*[[setVehicleRespawnDelay]]
*[[setVehicleRespawnPosition]]
*[[setVehicleSirensOn]]
*[[setVehicleTurretPosition]]
*[[setVehicleDoorOpenRatio]]
*[[setVehicleHandling]]
*[[setVehicleTurnVelocity]]
*[[setVehicleWheelStates]]
*[[setVehicleHeadLightColor]]
*[[setVehicleTaxiLightOn]]
*[[setVehicleVariant]]
*[[setVehicleSirens]]
<noinclude>[[Category:Functions templates]]</noinclude>

Revision as of 18:17, 6 September 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.