Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Add spawnVehicleFlyingComponent)
 
(48 intermediate revisions by 22 users not shown)
Line 1: Line 1:
*[[addVehicleUpgrade]]{{RU/EN}}
<includeonly>
*[[attachTrailerToVehicle]]{{RU/EN}}
<ul>
*[[blowVehicle]]{{RU/EN}}
{{#if: {{{1|}}}
*[[createVehicle]]{{RU/EN}}
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[detachTrailerFromVehicle]]{{RU/EN}}
|
*[[fixVehicle]]{{RU/EN}}
    <!-- CLIENT functions -->
*[[getVehicleColor ]]{{RU/EN}}
    <li>[[areVehicleLightsOn]]</li>
*[[getVehicleCompatibleUpgrades]]{{RU/EN}}
    <li>[[getHeliBladeCollisionsEnabled]]</li>
*[[getVehicleController]]{{RU/EN}}
    <li>[[getHelicopterRotorSpeed]]</li>
*[[getVehicleDoorState]]{{RU/EN}}
    {{New feature/item|3.0161|1.6.0|22344|
*[[getVehicleEngineState]]{{RU/EN}}
    <li>[[getVehicleRotorSpeed]]</li>
*[[getVehicleLandingGearDown]]{{RU/EN}}
    }}
*[[getVehicleLightState]]{{RU/EN}}
    <li>[[getVehicleAdjustableProperty]]</li>
*[[getVehicleMaxPassengers]]{{RU/EN}}
    <li>[[getVehicleComponentPosition]]</li>
*[[getVehicleName]]{{RU/EN}}
    <li>[[getVehicleComponentRotation]]</li>
*[[getVehicleOccupant]]{{RU/EN}}
    <li>[[getVehicleComponents]]</li>
{{New feature|3.0004|1.0.4|
    <li>[[getVehicleComponentScale]]</li>
* [[getVehicleOccupants]]{{RU/EN}}
    <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>
}}
}}
*[[getVehicleOverrideLights]]{{RU/EN}}
 
*[[getVehiclePaintjob]]{{RU/EN}}
<!-- SHARED functions-->
*[[getVehiclePanelState]]{{RU/EN}}
<li>[[addVehicleUpgrade]]</li>
*[[getVehicleRotation]]{{RU/EN}}
<li>[[attachTrailerToVehicle]]</li>
*[[getVehicleSirensOn]]{{RU/EN}}
<li>[[blowVehicle]]</li>
*[[getVehiclesOfType]]{{RU/EN}}
<li>[[createVehicle]]</li>
*[[getVehicleTowedByVehicle]]{{RU/EN}}
<li>[[detachTrailerFromVehicle]]</li>
*[[getVehicleTowingVehicle]]{{RU/EN}}
<li>[[fixVehicle]]</li>
*[[getVehicleTurnVelocity]]{{RU/EN}}
<li>[[getOriginalHandling]]</li>
*[[getVehicleTurretPosition]]{{RU/EN}}
<li>[[getTrainDirection]]</li>
*[[getVehicleType ]]{{RU/EN}}
<li>[[getTrainPosition]]</li>
*[[getVehicleUpgradeOnSlot]]{{RU/EN}}
<li>[[getTrainSpeed]]</li>
*[[getVehicleUpgrades]]{{RU/EN}}
<li>[[getTrainTrack]]</li>
*[[getVehicleUpgradeSlotName]]{{RU/EN}}
<li>[[getVehicleColor]]</li>
*[[getVehicleWheelStates]]{{RU/EN}}
<li>[[getVehicleCompatibleUpgrades]]</li>
{{New feature|3.0004|1.0.4|
<li>[[getVehicleController]]</li>
*[[isVehicleDamageProof]]{{RU/EN}}
<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>
}}
}}
*[[isVehicleFrozen]]{{RU/EN}}
<li>[[getVehicleType]]</li>
*[[isVehicleFuelTankExplodable]]{{RU/EN}}
<li>[[getVehicleUpgradeOnSlot]]</li>
*[[isVehicleLocked]]{{RU/EN}}
<li>[[getVehicleUpgradeSlotName]]</li>
*[[isVehicleOnGround]]{{RU/EN}}
<li>[[getVehicleUpgrades]]</li>
*[[removeVehicleUpgrade]]{{RU/EN}}
<li>[[getVehicleVariant]]</li>
*[[resetVehicleExplosionTime]]{{RU/EN}}
<li>[[getVehicleWheelStates]]</li>
*[[resetVehicleIdleTime]]{{RU/EN}}
<li>[[isTrainDerailable]]</li>
*[[respawnVehicle]]{{RU/EN}}
<li>[[isTrainDerailed]]</li>
*[[setVehicleColor]]{{RU/EN}}
<li>[[isVehicleBlown]]</li>
*[[setVehicleDamageProof]]{{RU/EN}}
<li>[[isVehicleDamageProof]]</li>
*[[setVehicleDirtLevel]]{{RU/EN}}
<li>[[isVehicleFuelTankExplodable]]</li>
*[[setVehicleDoorState]]{{RU/EN}}
<li>[[isVehicleLocked]]</li>
*[[setVehicleDoorsUndamageable]]{{RU/EN}}
<li>[[isVehicleOnGround]]</li>
*[[setVehicleEngineState]]{{RU/EN}}
<li>[[isVehicleTaxiLightOn]]</li>
*[[setVehicleFrozen]]{{RU/EN}}
<li>[[removeVehicleUpgrade]]</li>
*[[setVehicleFuelTankExplodable]]{{RU/EN}}
<li>[[setTrainDerailable]]</li>
*[[setVehicleIdleRespawnDelay]]{{RU/EN}}
<li>[[setTrainDerailed]]</li>
*[[setVehicleLandingGearDown]]{{RU/EN}}
<li>[[setTrainDirection]]</li>
*[[setVehicleLightState]]{{RU/EN}}
<li>[[setTrainPosition]]</li>
*[[setVehicleLocked]]{{RU/EN}}
<li>[[setTrainSpeed]]</li>
*[[setVehicleOverrideLights]]{{RU/EN}}
<li>[[setTrainTrack]]</li>
*[[setVehiclePaintjob]]{{RU/EN}}
<li>[[setVehicleColor]]</li>
*[[setVehiclePanelState]]{{RU/EN}}
<li>[[setVehicleDamageProof]]</li>
*[[setVehicleRespawnDelay]]{{RU/EN}}
<li>[[setVehicleDoorOpenRatio]]</li>
*[[setVehicleRespawnPosition]]{{RU/EN}}
<li>[[setVehicleDoorState]]</li>
*[[setVehicleRotation]]{{RU/EN}}
<li>[[setVehicleDoorsUndamageable]]</li>
*[[setVehicleSirensOn]]{{RU/EN}}
<li>[[setVehicleEngineState]]</li>
*[[setVehicleTurnVelocity]]{{RU/EN}}
<li>[[setVehicleFuelTankExplodable]]</li>
*[[setVehicleWheelStates]]{{RU/EN}}
<li>[[setVehicleHandling]]</li>
*[[spawnVehicle]]{{RU/EN}}
<li>[[setVehicleHeadLightColor]]</li>
*[[toggleVehicleRespawn]]{{RU/EN}}
<li>[[setVehicleLandingGearDown]]</li>
{{New feature|3|1.0|
<li>[[setVehicleLightState]]</li>
*[[getTrainDirection]]{{RU/EN}}
<li>[[setVehicleLocked]]</li>
*[[getTrainSpeed]]{{RU/EN}}
<li>[[setVehicleOverrideLights]]</li>
*[[getVehicleHeadLightColor]]{{RU/EN}}
<li>[[setVehiclePaintjob]]</li>
*[[getVehicleModelFromName]]{{RU/EN}}
<li>[[setVehiclePanelState]]</li>
*[[getVehicleNameFromModel]]{{RU/EN}}
<li>[[setVehiclePlateText]]</li>
*[[getVehicleType]]{{RU/EN}}
<li>[[setVehicleSirens]]</li>
*[[isTrainDerailable]]{{RU/EN}}
<li>[[setVehicleSirensOn]]</li>
*[[isTrainDerailed]]{{RU/EN}}
<li>[[setVehicleTaxiLightOn]]</li>
*[[isVehicleBlown]]{{RU/EN}}
{{Deprecated items|3.0156|1.5.6|
*[[isVehicleTaxiLightOn]]{{RU/EN}}
<li>[[setVehicleTurnVelocity]]</li>
*[[setTrainDerailable]]{{RU/EN}}
*[[setTrainDerailed]]{{RU/EN}}
*[[setTrainDirection]]{{RU/EN}}
*[[setTrainSpeed]]{{RU/EN}}
*[[setVehicleHeadLightColor]]{{RU/EN}}
*[[setVehicleTaxiLightOn]]{{RU/EN}}
}}
{{Deprecated_feature|3|1.0|
*[[getVehicleID]]{{RU/EN}}
*[[getVehicleIDFromName]]{{RU/EN}}
*[[getVehicleNameFromID]]{{RU/EN}}
*[[setVehicleModel]]{{RU/EN}}
}}
}}
<li>[[setVehicleTurretPosition]]</li>
<li>[[setVehicleVariant]]</li>
<li>[[setVehicleWheelStates]]</li>
{{New items|3.0161|1.6.0|
<li>[[spawnVehicleFlyingComponent]]</li>
|22771}}
</ul>
</includeonly>
<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.