GetStreamedVehicles: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetStreamedVehicles()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Ex..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get the streamed-in vehicles identifiers in a table.}} | ||
{{FuncSyntax|GetStreamedVehicles()}} | {{FuncSyntax|GetStreamedVehicles()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns the streamed-in vehicle identifiers in a table.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
for k, v in pairs(GetStreamedVehicles()) do | |||
AddPlayerChat("The vehicle ID "..v.." is streamed in for you.") | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ClientVehicleFunctions}} |
Latest revision as of 17:22, 16 January 2020
Description
Get the streamed-in vehicles identifiers in a table.
Syntax
GetStreamedVehicles()
Parameters
- This function has no parameters.
Return Value
- Returns the streamed-in vehicle identifiers in a table.
Example
for k, v in pairs(GetStreamedVehicles()) do
AddPlayerChat("The vehicle ID "..v.." is streamed in for you.")
end
See also
- SetVehiclePropertyValue
- GetVehiclePropertyValue
- GetVehicleCount
- GetVehicleLicensePlate
- IsValidVehicle
- GetStreamedVehicles
- GetVehicleBoneLocation
- GetVehicleBoneNames
- GetVehicleModel
- GetVehicleLocation
- GetVehicleRotation
- GetVehicleVelocity
- GetVehicleForwardVector
- GetVehicleRightVector
- GetVehicleUpVector
- GetVehicleBoundingBox
- GetVehicleEngineRPM
- GetVehicleForwardSpeed
- GetVehicleGear
- GetVehicleWheelSurface
- IsVehicleWheelInAir
- IsVehicleInAir
- GetVehicleWheelSteerAngle
- IsVehicleHornActive
- GetVehicleEngineState
- GetVehicleLightState
- GetVehicleHoodRatio
- GetVehicleTrunkRatio
- IsVehicleInWater
- IsVehicleSeatOccupied
- GetVehicleDoorLocation
- GetVehicleHealth