car lights during day
#1

how can i eneble car lights during day?
Reply
#2

Try adding this in to OnGameModeInit:

pawn Код:
ManualVehicleEngineAndLights();
Reply
#3

if i will add that i need to typ /engine to open the engine?
Reply
#4

Yes.
Reply
#5

i can add that without a /engine command?
the engine to autostart?
Reply
#6

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2) // Entered vehicle as driver
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        // Turn engine on here for 'vehicleid'
    }
    return 1;
}
Reply
#7

Check if player enter the vehicle (You will need to use OnPlayerStateChange) then use SetVehicleParamsEx to turn on the engine I can't code it I'm current in mobile
Reply
#8

I think if you set the world weather to 2, all the sirens and lights will work on daytime too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)