Scripting/Server/Functions/FindVehicle
Vehicle handle or null.
Syntax
FindVehicle(id)Arguments
- int id
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "findvehicle" )
{
FindVehicle( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- FindPlayer
- FindObject
- FindPickup
- FindSphere
- FindBlip
- FindNPC
- GetPlayers
- GetMaxPlayers
- GetClosestPlayer
- GetVehicleCount
- GetObjectCount
- KickPlayer
Section: Finding and counting entities
Categories: Server functions | Finding and counting entities