IsVehicleStreamedIn: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=Checks if a vehicle is streamed in for an NPC. Only nearby vehicles are streamed in.| params=<syntaxhighlight lang="lua">(vehicleid)</syntaxhighlight> <poem>::...") |
No edit summary |
||
Line 4: | Line 4: | ||
<poem>::vehicleid: The ID of the vehicle to check if streamed in.</poem>| | <poem>::vehicleid: The ID of the vehicle to check if streamed in.</poem>| | ||
retvals=<poem>true, if the vehicle is streamed in. | retvals=<poem>true, if the vehicle is streamed in. | ||
false, if the vehicle is not streamed in.</poem> | false, if the vehicle is not streamed in.</poem>| | ||
example=<source lang="lua"> | example=<source lang="lua"> | ||
if(IsVehicleStreamedIn(vehicleid)) | if(IsVehicleStreamedIn(vehicleid)) |
Latest revision as of 15:32, 15 March 2022
Description:
Checks if a vehicle is streamed in for an NPC. Only nearby vehicles are streamed in.
Parameters:
(vehicleid)
vehicleid: The ID of the vehicle to check if streamed in.
Return Values:
true, if the vehicle is streamed in.
false, if the vehicle is not streamed in.
Example
if(IsVehicleStreamedIn(vehicleid)) { //Do something ! }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.