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

ShowVehicle

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!

cảnh báo

This function has not yet been implemented.

Description​

Shows the hidden vehicle.

Parametes​

NameDescription
vehicleidThe ID of the vehicle to show.

Examples​

new g_Vehicle;

public OnGameModeInit()
{
g_Vehicle = CreateVehicle(536, 2496.5034, 5.6658, 27.2247, 180.0000, -1, -1, 60);
HideVehicle(g_Vehicle);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/showvehicle", true))
{
if (IsVehicleHidden(g_Vehicle))
{
ShowVehicle(g_Vehicle);
}
return 1;
}
return 0;
}