[HELP] engine of all vehicles off
#1

Hello how can I make when I start my gamemode that then all cars(vehicles) be off I mean on engine and lights I ahev something like that but when I enter it turn on engine and lights? Thanks
Reply
#2

https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
Reply
#3

this is not what I looking for I looking for something like this under but for some reason It doesn't work

pawn Код:
for(new i=1;i<MAX_VOZILA;i++)
    {
        new engine, lights, alarm, doors, bonnet, boot, objective;
        GetVehicleParamsEx(i, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(i,0,0,0,0,0,0,0);
    }
Reply
#4

When you use that function I sent you link to, the engine and lights are by default turned off. Additionally if you don't use it, the SetVehicleParamsEx won't work as intended.
Reply
#5

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid,0,0,0,0,0,0,0);
    return 1;
}
Reply
#6

and if u bave further probs...use this.
Reply
#7

yes what danishHaq posted I already have that
Reply
#8

I try everything but it isn't work I enter in my server sit in the car and the car engine is on and light also.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)