ManualVehicleEngineAndLights

From SA-MP Wiki

Jump to: navigation, search


ManualVehicleEngineAndLights was added in SA-MP 0.3c This Function was added in SA-MP 0.3c and will not work in earlier versions!


Description:

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.


Parameters:
This function has no parameters.


Return Values:

This function always returns 1. It cannot fail to execute.


Image:32px-Ambox_warning_orange.png

Note

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


Example Usage:

public OnGameModeInit()
{
    ManualVehicleEngineAndLights();
 
    return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox