Template:Vehicle functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Add spawnVehicleFlyingComponent)
 
(52 intermediate revisions by 24 users not shown)
Line 1: Line 1:
*[[addVehicleUpgrade]]
<includeonly>
*[[attachTrailerToVehicle]]
<ul>
*[[blowVehicle]]
{{#if: {{{1|}}}
*[[createVehicle]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[detachTrailerFromVehicle]]
|
*[[fixVehicle]]
    <!-- CLIENT functions -->
*[[getVehicleColor ]]
    <li>[[areVehicleLightsOn]]</li>
*[[getVehicleCompatibleUpgrades]]
    <li>[[getHeliBladeCollisionsEnabled]]</li>
*[[getVehicleController]]
    <li>[[getHelicopterRotorSpeed]]</li>
*[[getVehicleDoorState]]
    {{New feature/item|3.0161|1.6.0|22344|
*[[getVehicleEngineState]]
    <li>[[getVehicleRotorSpeed]]</li>
*[[getVehicleLandingGearDown]]
    }}
*[[getVehicleLightState]]
    <li>[[getVehicleAdjustableProperty]]</li>
*[[getVehicleMaxPassengers]]
    <li>[[getVehicleComponentPosition]]</li>
*[[getVehicleName]]
    <li>[[getVehicleComponentRotation]]</li>
*[[getVehicleOccupant]]
    <li>[[getVehicleComponents]]</li>
*[[getVehicleOverrideLights]]
    <li>[[getVehicleComponentScale]]</li>
*[[getVehiclePaintjob]]
    <li>[[getVehicleComponentVisible]]</li>
*[[getVehiclePanelState]]
    <li>[[getVehicleCurrentGear]]</li>
*[[getVehicleRotation]]
    <li>[[getVehicleDummyPosition]]</li>
*[[getVehicleSirensOn]]
    {{New items|3.0161|1.6.0|
*[[getVehiclesOfType]]
    <li>[[getVehicleEntryPoints]]</li>
*[[getVehicleTowedByVehicle]]
    |22649}}
*[[getVehicleTowingVehicle]]
    <li>[[getVehicleGravity]]</li>
*[[getVehicleTurnVelocity]]
    <li>[[getVehicleLandingGearDown]]</li>
*[[getVehicleTurretPosition]]
    <li>[[getVehicleModelDummyDefaultPosition]]</li>
*[[getVehicleType ]]
    <li>[[getVehicleModelDummyPosition]]</li>
*[[getVehicleUpgradeOnSlot]]
    <li>[[getVehicleModelExhaustFumesPosition]]</li>
*[[getVehicleUpgrades]]
    <li>[[getVehicleModelWheelSize]]</li>
*[[getVehicleUpgradeSlotName]]
    <li>[[getVehicleNitroCount]]</li>
*[[getVehicleWheelStates]]
    <li>[[getVehicleNitroLevel]]</li>
*[[isVehicleFrozen]]
    <li>[[getVehicleWheelFrictionState]]</li>
*[[isVehicleFuelTankExplodable]]
    <li>[[getVehicleWheelScale]]</li>
*[[isVehicleLocked]]
    <li>[[isTrainChainEngine]]</li>
*[[isVehicleOnGround]]
    <li>[[isVehicleNitroActivated]]</li>
*[[removeVehicleUpgrade]]
    <li>[[isVehicleNitroRecharging]]</li>
*[[resetVehicleExplosionTime]]
    <li>[[isVehicleOnGround]]</li>
*[[resetVehicleIdleTime]]
    <li>[[isVehicleWheelOnGround]]</li>
*[[respawnVehicle]]
    <li>[[isVehicleWindowOpen]]</li>
*[[setVehicleColor]]
    <li>[[resetVehicleComponentPosition]]</li>
*[[setVehicleDamageProof]]
    <li>[[resetVehicleComponentRotation]]</li>
*[[setVehicleDirtLevel]]
    <li>[[resetVehicleComponentScale]]</li>
*[[setVehicleDoorState]]
    <li>[[resetVehicleDummyPositions]]</li>
*[[setVehicleDoorsUndamageable]]
    <li>[[setHeliBladeCollisionsEnabled]]</li>
*[[setVehicleEngineState]]
    <li>[[setHelicopterRotorSpeed]]</li>
*[[setVehicleFrozen]]
    {{New items|3.0161|1.6.0|
*[[setVehicleFuelTankExplodable]]
    <li>[[setVehicleRotorSpeed]]</li>
*[[setVehicleIdleRespawnDelay]]
    |22344}}
*[[setVehicleLandingGearDown]]
    <li>[[setVehicleAdjustableProperty]]</li>
*[[setVehicleLightState]]
    <li>[[setVehicleComponentPosition]]</li>
*[[setVehicleLocked]]
    <li>[[setVehicleComponentRotation]]</li>
*[[setVehicleOverrideLights]]
    <li>[[setVehicleComponentScale]]</li>
*[[setVehiclePaintjob]]
    <li>[[setVehicleComponentVisible]]</li>
*[[setVehiclePanelState]]
    <li>[[setVehicleDummyPosition]]</li>
*[[setVehicleRespawnDelay]]
    <li>[[setVehicleGravity]]</li>
*[[setVehicleRespawnPosition]]
    <li>[[setVehicleLandingGearDown]]</li>
*[[setVehicleRotation]]
    <li>[[setVehicleModelDummyPosition]]</li>
*[[setVehicleSirensOn]]
    <li>[[setVehicleModelExhaustFumesPosition]]</li>
*[[setVehicleTurnVelocity]]
    <li>[[setVehicleModelWheelSize]]</li>
*[[setVehicleWheelStates]]
    <li>[[setVehicleNitroActivated]]</li>
*[[spawnVehicle]]
    <li>[[setVehicleNitroCount]]</li>
*[[toggleVehicleRespawn]]
    <li>[[setVehicleNitroLevel]]</li>
{{New feature|3|1.0|
    <li>[[setVehicleWheelScale]]</li>
*[[getTrainDirection]]
    <li>[[setVehicleWheelStates]]</li>
*[[getTrainSpeed]]
    <li>[[setVehicleWindowOpen]]</li>
*[[getVehicleHeadLightColor]]
    {{New items|3.0161|1.6.0|
*[[getVehicleModelFromName]]
    <li>[[setVehicleWheelsRotation]]</li>
*[[getVehicleNameFromModel]]
    |22592}}
*[[getVehicleType]]
| {{#ifeq: {{lc:{{{1}}}}} | server
*[[isTrainDerailable]]
|
*[[isTrainDerailed]]
    <!-- SERVER functions -->
*[[isVehicleBlown]]
    <li>[[addVehicleSirens]]</li>
*[[isVehicleTaxiLightOn]]
    <li>[[getModelHandling]]</li>
*[[setTrainDerailable]]
    <li>[[getVehicleIdleRespawnDelay]]</li>
*[[setTrainDerailed]]
    <li>[[getVehicleRespawnDelay]]</li>
*[[setTrainDirection]]
    <li>[[getVehicleRespawnPosition]]</li>
*[[setTrainSpeed]]
    <li>[[getVehicleRespawnRotation]]</li>
*[[setVehicleHeadLightColor]]
    <li>[[getVehiclesOfType]]</li>
*[[setVehicleTaxiLightOn]]
    <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>
}}
}}
{{Deprecated_feature|3|1.0|
 
*[[getVehicleID]]
<!-- SHARED functions-->
*[[getVehicleIDFromName]]
<li>[[addVehicleUpgrade]]</li>
*[[getVehicleNameFromID]]
<li>[[attachTrailerToVehicle]]</li>
*[[setVehicleModel]]
<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|
<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>
<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.