Skip to main content

ManualVehicleEngineAndLights

คำอธิบาย​

Use this function before any player connects (OnGameModeInit) to tell all clients that the script will control vehicle engines and lights. This prevents the game automatically turning the engine on/off when players enter/exit vehicles and headlights automatically coming on when it is dark.

NameDescription

ตัวอย่าง​

public OnGameModeInit()
{
ManualVehicleEngineAndLights();

return 1;
}

บันทึก​

หมายเหตุ

Is it not possible to reverse this function after it has been used. You must either use it or not use it.

ฟังก์ชั่นที่เกี่ยวข้องกัน​