altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

ManualEngineControl = true does not work. #1434

Open Wlankabel420 opened 2 years ago

Wlankabel420 commented 2 years ago

Description of the problem

I have programmed an engine script but unfortunately ManualEngineControl = true does not work. The engine of the vehicle is started after pressing "W" anyway.

Reproduction steps

    public TVehicle(IServer server, IntPtr nativePointer, ushort id) : base(server, nativePointer, id)
    {
        SpielerID = 0;
        VehicleLock = 1;
        VehicleName = "";
        ManualEngineControl = true;
        Fuel = 100f;

    }

I am sorry, it is my first time using Github like that

Expected behaviour

I am looking for a solution ^^

Additional context

No response

Operating system

Windows 10

Version

Release 9.7

deluvas1911 commented 2 years ago

You need to set the ped config flag 429 to disable the auto engine start when pressing W & the flag 241 to disable stopping engine on leaving the vehicle

xxshady commented 2 years ago

@Wlankabel420 @deluvas1911 duplicate of #737?

yannbcf commented 2 years ago

It is actually a duplicate but we will keep the issue as it contains details of about engineControl