GetVehicleIdleRespawnDelay: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server function}} {{Added feature/item|1.6.1|1.6.0|22505|This function gets the time delay (in milliseconds) the vehicle will remain at its position while empty.}} ==Syntax== <syntaxhighlight lang="lua"> int getVehicleIdleRespawnDelay ( vehicle theVehicle ) </syntaxhighlight> {{OOP||vehicle:getIdleRespawnDelay|idleRespawnDelay|setVehicleIdleRespawnDelay}} ===Required Arguments=== *'''theVehicle''': The vehicle you wish to get the idle delay of. ==...") |
m (→See Also) |
||
Line 34: | Line 34: | ||
==See Also== | ==See Also== | ||
{{ | {{Vehicle_functions|server}} |
Latest revision as of 23:03, 6 September 2024
Syntax
int getVehicleIdleRespawnDelay ( vehicle theVehicle )
OOP Syntax Help! I don't understand this!
- Method: vehicle:getIdleRespawnDelay(...)
- Variable: .idleRespawnDelay
- Counterpart: setVehicleIdleRespawnDelay
Required Arguments
- theVehicle: The vehicle you wish to get the idle delay of.
Returns
Returns the delay in milliseconds.
Example
Click to collapse [-]
ServerThis example gets the idle delay of a current occupying vehicle.
addCommandHandler("getVehicleDelay", function(player) local veh = getPedOccupiedVehicle(player) if not veh then outputChatBox('You must be in a vehicle!', player) return end local delay = getVehicleIdleRespawnDelay(veh) outputChatBox('Idle vehicle delay: '..delay..'ms', player) end)
See Also
- addVehicleSirens
- getModelHandling
- getVehicleIdleRespawnDelay
- getVehicleRespawnDelay
- getVehicleRespawnPosition
- getVehicleRespawnRotation
- getVehiclesOfType
- isVehicleRespawnable
- removeVehicleSirens
- resetVehicleExplosionTime
- resetVehicleIdleTime
- respawnVehicle
- setModelHandling
- setVehicleIdleRespawnDelay
- setVehicleRespawnDelay
- setVehicleRespawnPosition
- setVehicleRespawnRotation
- spawnVehicle
- toggleVehicleRespawn
- Shared
- addVehicleUpgrade
- attachTrailerToVehicle
- blowVehicle
- createVehicle
- detachTrailerFromVehicle
- fixVehicle
- getOriginalHandling
- getTrainDirection
- getTrainPosition
- getTrainSpeed
- getTrainTrack
- getVehicleColor
- getVehicleCompatibleUpgrades
- getVehicleController
- getVehicleDoorOpenRatio
- getVehicleDoorState
- getVehicleEngineState
- getVehicleHandling
- getVehicleHeadLightColor
- getVehicleLandingGearDown
- getVehicleLightState
- getVehicleMaxPassengers
- getVehicleModelFromName
- getVehicleName
- getVehicleNameFromModel
- getVehicleOccupant
- getVehicleOccupants
- getVehicleOverrideLights
- getVehiclePaintjob
- getVehiclePanelState
- getVehiclePlateText
- getVehicleSirenParams
- getVehicleSirens
- getVehicleSirensOn
- getVehicleTowedByVehicle
- getVehicleTowingVehicle
- getVehicleTurretPosition
- getVehicleType
- getVehicleUpgradeOnSlot
- getVehicleUpgradeSlotName
- getVehicleUpgrades
- getVehicleVariant
- getVehicleWheelStates
- isTrainDerailable
- isTrainDerailed
- isVehicleBlown
- isVehicleDamageProof
- isVehicleFuelTankExplodable
- isVehicleLocked
- isVehicleOnGround
- isVehicleTaxiLightOn
- removeVehicleUpgrade
- setTrainDerailable
- setTrainDerailed
- setTrainDirection
- setTrainPosition
- setTrainSpeed
- setTrainTrack
- setVehicleColor
- setVehicleDamageProof
- setVehicleDoorOpenRatio
- setVehicleDoorState
- setVehicleDoorsUndamageable
- setVehicleEngineState
- setVehicleFuelTankExplodable
- setVehicleHandling
- setVehicleHeadLightColor
- setVehicleLandingGearDown
- setVehicleLightState
- setVehicleLocked
- setVehicleOverrideLights
- setVehiclePaintjob
- setVehiclePanelState
- setVehiclePlateText
- setVehicleSirens
- setVehicleSirensOn
- setVehicleTaxiLightOn
- setVehicleTurretPosition
- setVehicleVariant
- setVehicleWheelStates