Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Rework)
(5 intermediate revisions by 2 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]]
    }}
* [[getVehicleColor]]
    <li>[[getVehicleAdjustableProperty]]</li>
* [[getVehicleCompatibleUpgrades]]
    <li>[[getVehicleComponentPosition]]</li>
* [[getVehicleController]]
    <li>[[getVehicleComponentRotation]]</li>
* [[getVehicleDoorOpenRatio]]
    <li>[[getVehicleComponents]]</li>
* [[getVehicleDoorState]]
    <li>[[getVehicleComponentScale]]</li>
* [[getVehicleEngineState]]
    <li>[[getVehicleComponentVisible]]</li>
* [[getVehicleHandling]]
    <li>[[getVehicleCurrentGear]]</li>
* [[getVehicleHeadLightColor]]
    <li>[[getVehicleDummyPosition]]</li>
* [[getVehicleLandingGearDown]]
    {{New items|3.0161|1.6.0|
* [[getVehicleLightState]]
    <li>[[getVehicleEntryPoints]]</li>
* [[getVehicleMaxPassengers]]
    |22649}}
* [[getVehicleModelFromName]]
    <li>[[getVehicleGravity]]</li>
* [[getVehicleName]]
    <li>[[getVehicleLandingGearDown]]</li>
* [[getVehicleNameFromModel]]
    <li>[[getVehicleModelDummyDefaultPosition]]</li>
* [[getVehicleOccupant]]
    <li>[[getVehicleModelDummyPosition]]</li>
* [[getVehicleOccupants]]
    <li>[[getVehicleModelExhaustFumesPosition]]</li>
* [[getVehicleOverrideLights]]
    <li>[[getVehicleModelWheelSize]]</li>
* [[getVehiclePaintjob]]
    <li>[[getVehicleNitroCount]]</li>
* [[getVehiclePanelState]]
    <li>[[getVehicleNitroLevel]]</li>
* [[getVehiclePlateText]]
    <li>[[getVehicleWheelFrictionState]]</li>
* [[getVehicleRespawnPosition]]
    <li>[[getVehicleWheelScale]]</li>
* [[getVehicleRespawnRotation]]
    <li>[[isTrainChainEngine]]</li>
* [[getVehicleSirenParams]]
    <li>[[isVehicleNitroActivated]]</li>
* [[getVehicleSirens]]
    <li>[[isVehicleNitroRecharging]]</li>
* [[getVehicleSirensOn]]
    <li>[[isVehicleOnGround]]</li>
* [[getVehiclesOfType]]
    <li>[[isVehicleWheelOnGround]]</li>
* [[getVehicleTowedByVehicle]]
    <li>[[isVehicleWindowOpen]]</li>
* [[getVehicleTowingVehicle]]
    <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>
}}
 
<!-- 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>
* [[getVehicleUpgrades]]
<li>[[getVehicleUpgrades]]</li>
* [[getVehicleUpgradeSlotName]]
<li>[[getVehicleVariant]]</li>
* [[getVehicleVariant]]
<li>[[getVehicleWheelStates]]</li>
* [[getVehicleWheelStates]]
<li>[[isTrainDerailable]]</li>
* [[isTrainDerailable]]
<li>[[isTrainDerailed]]</li>
* [[isTrainDerailed]]
<li>[[isVehicleBlown]]</li>
* [[isVehicleBlown]]
<li>[[isVehicleDamageProof]]</li>
* [[isVehicleDamageProof]]
<li>[[isVehicleFuelTankExplodable]]</li>
* [[isVehicleFuelTankExplodable]]
<li>[[isVehicleLocked]]</li>
* [[isVehicleLocked]]
<li>[[isVehicleOnGround]]</li>
* [[isVehicleOnGround]]
<li>[[isVehicleTaxiLightOn]]</li>
* [[isVehicleTaxiLightOn]]
<li>[[removeVehicleUpgrade]]</li>
* [[removeVehicleSirens]]
<li>[[setTrainDerailable]]</li>
* [[removeVehicleUpgrade]]
<li>[[setTrainDerailed]]</li>
* [[resetVehicleExplosionTime]]
<li>[[setTrainDirection]]</li>
* [[resetVehicleIdleTime]]
<li>[[setTrainPosition]]</li>
* [[respawnVehicle]]
<li>[[setTrainSpeed]]</li>
* [[setModelHandling]]
<li>[[setTrainTrack]]</li>
* [[setTrainDerailable]]
<li>[[setVehicleColor]]</li>
* [[setTrainDerailed]]
<li>[[setVehicleDamageProof]]</li>
* [[setTrainDirection]]
<li>[[setVehicleDoorOpenRatio]]</li>
* [[setTrainPosition]]
<li>[[setVehicleDoorState]]</li>
* [[setTrainSpeed]]
<li>[[setVehicleDoorsUndamageable]]</li>
* [[setVehicleColor]]
<li>[[setVehicleEngineState]]</li>
* [[setVehicleDamageProof]]
<li>[[setVehicleFuelTankExplodable]]</li>
* [[setVehicleDoorOpenRatio]]
<li>[[setVehicleHandling]]</li>
* [[setVehicleDoorState]]
<li>[[setVehicleHeadLightColor]]</li>
* [[setVehicleDoorsUndamageable]]
<li>[[setVehicleLandingGearDown]]</li>
* [[setVehicleEngineState]]
<li>[[setVehicleLightState]]</li>
* [[setVehicleFuelTankExplodable]]
<li>[[setVehicleLocked]]</li>
* [[setVehicleHandling]]
<li>[[setVehicleOverrideLights]]</li>
* [[setVehicleHeadLightColor]]
<li>[[setVehiclePaintjob]]</li>
* [[setVehicleIdleRespawnDelay]]
<li>[[setVehiclePanelState]]</li>
* [[setVehicleLandingGearDown]]
<li>[[setVehiclePlateText]]</li>
* [[setVehicleLightState]]
<li>[[setVehicleSirens]]</li>
* [[setVehicleLocked]]
<li>[[setVehicleSirensOn]]</li>
* [[setVehicleOverrideLights]]
<li>[[setVehicleTaxiLightOn]]</li>
* [[setVehiclePaintjob]]
* [[setVehiclePanelState]]
* [[setVehiclePlateText]]
* [[setVehicleRespawnDelay]]
* [[setVehicleRespawnPosition]]
* [[setVehicleRespawnRotation]]
* [[setVehicleSirens]]
* [[setVehicleSirensOn]]
* [[setVehicleTaxiLightOn]]
{{Deprecated items|3.0156|1.5.6|
{{Deprecated items|3.0156|1.5.6|
* [[setVehicleTurnVelocity]]
<li>[[setVehicleTurnVelocity]]</li>
}}
* [[setVehicleTurretPosition]]
{{Updated feature/item|1.5.9|1.5.8|20693|
* [[setVehicleVariant]]
}}
}}
* [[setVehicleWheelStates]]
<li>[[setVehicleTurretPosition]]</li>
* [[spawnVehicle]]
<li>[[setVehicleVariant]]</li>
* [[toggleVehicleRespawn]]
<li>[[setVehicleWheelStates]]</li>
</ul>
</includeonly>


<noinclude>[[Category:Functions templates]]</noinclude>
<noinclude>
{{Functions list info}}
[[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.