Scripting/Client/Functions/FindVehicle
Vehicle handle for a vehicle that is currently streamed to you. Unknown ids still return a handle, but every property reads null - test vehicle.Model for null.
Syntax
FindVehicle(id)Arguments
- int id
Example
function onScriptLoad()
{
FindVehicle( 0 );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: Looking up entities
Categories: Client functions | Looking up entities