Chuyển tới nội dung chính

IsVehicleOccupied

cảnh báo

Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!

Description​

Check if a vehicle is occupied.

Parameters​

NameDescription
vehicleidThe ID of the vehicle.

Return Values​

true - Vehicle is occupied.

false - Vehicle is not occupied.

Examples​

if (IsVehicleOccupied(vehicleid))
{
// Vehicle is occupied
}
else
{
// Vehicle is not occupied
}