SetVehicleDimension: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Sets the dimension of this vehicle. Players can only see vehicles in the same dimension. * Default dimension: 0 * Maximum dime..." |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParam|dimension|The new dimension to set.}} | {{FuncParam|dimension|The new dimension to set.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetVehicleDimension(vehicle, 0) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{VehicleFunctions}} |
Latest revision as of 15:11, 7 January 2020
Description
Sets the dimension of this vehicle. Players can only see vehicles in the same dimension.
- Default dimension: 0
- Maximum dimension: 4294967295
Syntax
SetVehicleDimension(vehicle, dimension)
Parameters
- vehicle
The vehicle identifier. - dimension
The new dimension to set.
Return Value
- This function returns true on success.
Example
SetVehicleDimension(vehicle, 0)
See also
- CreateVehicle
- DestroyVehicle
- IsValidVehicle
- GetVehicleCount
- GetAllVehicles
- GetVehicleModel
- GetVehicleModelName
- SetVehicleRespawnParams
- IsVehicleStreamedIn
- GetStreamedVehiclesForPlayer
- GetStreamedVehicles
- SetVehicleLocation
- GetVehicleLocation
- SetVehicleRotation
- GetVehicleRotation
- SetVehicleHeading
- GetVehicleHeading
- SetVehicleHealth
- GetVehicleHealth
- SetVehicleLicensePlate
- GetVehicleVelocity
- GetVehicleDriver
- GetVehiclePassenger
- GetVehicleNumberOfSeats
- SetVehicleColor
- GetVehicleColor
- SetVehicleLinearVelocity
- SetVehicleAngularVelocity
- GetVehicleGear
- SetVehicleHoodRatio
- GetVehicleHoodRatio
- SetVehicleTrunkRatio
- GetVehicleTrunkRatio
- StartVehicleEngine
- StopVehicleEngine
- GetVehicleEngineState
- SetVehicleLightEnabled
- GetVehicleLightState
- SetVehicleDamage
- GetVehicleDamage
- AttachVehicleNitro