Template:Vehicle functions: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| mNo edit summary | Fernando187 (talk | contribs)  m (remove deprecated funcs) | ||
| (73 intermediate revisions by 34 users not shown) | |||
| Line 1: | Line 1: | ||
| <includeonly> | |||
| <ul> | |||
| {{#if: {{{1|}}} | |||
|  | {{#ifeq: {{lc:{{{1}}}}} | client | |||
|  | | |||
|     <!-- CLIENT functions --> | |||
|     <li>[[areVehicleLightsOn]]</li> | |||
|     <li>[[getHeliBladeCollisionsEnabled]]</li> | |||
| {{ |     {{New feature/item|3.0161|1.6.0|22344| | ||
|     <li>[[getVehicleRotorSpeed]]</li> | |||
|     }} | |||
|     {{New items|3.0161|1.6.0| | |||
|     <li>[[getVehicleRotorState]]</li> | |||
| {{New  |     |22862}} | ||
|     <li>[[getVehicleAdjustableProperty]]</li> | |||
|     <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> | |||
| {{New  |     |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> | |||
|     {{New items|3.0161|1.6.0| | |||
|     <li>[[setVehicleRotorSpeed]]</li> | |||
|     |22344}} | |||
|     {{New items|3.0161|1.6.0| | |||
|     <li>[[setVehicleRotorState]]</li> | |||
|     |22862}} | |||
|     <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>[[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}} | |||
|  {{New items|3.0161|1.6.0| | |||
|     <li>[[setVehicleSmokeTrailEnabled]]</li> | |||
|     |22815}} | |||
| {{New items|3.0161|1.6.0| | |||
|     <li>[[isVehicleSmokeTrailEnabled]]</li> | |||
|     |22815}} | |||
|  | {{#ifeq: {{lc:{{{1}}}}} | server | |||
|  | | |||
|     <!-- SERVER functions --> | |||
|     <li>[[getModelHandling]]</li> | |||
|     <li>[[getVehicleIdleRespawnDelay]]</li> | |||
|     <li>[[getVehicleRespawnDelay]]</li> | |||
|     <li>[[getVehicleRespawnPosition]]</li> | |||
|     <li>[[getVehicleRespawnRotation]]</li> | |||
|     <li>[[getVehiclesOfType]]</li> | |||
|     <li>[[isVehicleRespawnable]]</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>[[addVehicleSirens]]</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>[[getVehicleColor]]</li> | |||
| <li>[[getVehicleCompatibleUpgrades]]</li> | |||
| <li>[[getVehicleController]]</li> | |||
| <li>[[getVehicleDoorOpenRatio]]</li> | |||
| {{New  | <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>[[setVehicleNitroActivated]]</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> | |||
| <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>[[removeVehicleSirens]]</li> | |||
| <li>[[setTrainDerailable]]</li> | |||
| <li>[[setTrainDerailed]]</li> | |||
| <li>[[setTrainDirection]]</li> | |||
| <li>[[setTrainPosition]]</li> | |||
| <li>[[setTrainSpeed]]</li> | |||
| <li>[[setVehicleColor]]</li> | |||
| <li>[[setVehicleDamageProof]]</li> | |||
| <li>[[setVehicleDoorOpenRatio]]</li> | |||
| <li>[[setVehicleDoorState]]</li> | |||
| <li>[[setVehicleDoorsUndamageable]]</li> | |||
| <li>[[setVehicleEngineState]]</li> | |||
| <li>[[setVehicleFuelTankExplodable]]</li> | |||
| {{New items|3.0161|1.6.0| | |||
| <li>[[spawnVehicleFlyingComponent]]</li> | |||
| |22771}} | |||
| <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> | |||
| <li>[[setVehicleTurretPosition]]</li> | |||
| <li>[[setVehicleVariant]]</li> | |||
| <li>[[setVehicleWheelStates]]</li> | |||
| </ul> | |||
| </includeonly> | |||
| <noinclude> | |||
| {{Functions list info}} | |||
| [[Category:Functions templates]]</noinclude> | |||
| {{ | |||
| }} | |||
Latest revision as of 17:29, 1 June 2025
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.