IsVehicleStreamedIn: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|IsVehicleStreamedIn(player, vehicle)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{FuncP..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Check if the player has the specified vehicle streamed in.}}


{{FuncSyntax|IsVehicleStreamedIn(player, vehicle)}}
{{FuncSyntax|IsVehicleStreamedIn(player, vehicle)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player|__EDIT_ME__}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|vehicle|__EDIT_ME__}}
{{FuncParam|vehicle|The vehicle identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
if IsVehicleStreamedIn(playerId, vehicleId) then
    AddPlayerChat(playerId, "You have vehicle streamed in...")
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{VehicleFunctions}}

Latest revision as of 19:48, 31 December 2019