Headlights problem
#1

Hello! I've trouble with vehicle headlights. When I sit in vehicle lights turn off, but I'm out of the car he turn on.
Gamemode inclued YSI, SetVehicleParamsEx not used.

P.S.: sry for my bad English ;(
Reply
#2

Could you provide us with some code? Use [ pawn ] tags
Reply
#3

Of course:
pawn Код:
new veh = GetPlayerVehicleID(playerid);
....

else if(!strcmp(option, "lights", true)) {
  GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
  if(lights)
    SetVehicleParamsEx(veh, engine, false, alarm, doors, bonnet, boot, objective);
  else
    SetVehicleParamsEx(veh, engine, true, alarm, doors, bonnet, boot, objective);
  return true;
}
Reply
#4

Have you.....

PHP код:
public OnGameModeInit()
{
    
ManualVehicleEngineAndLights();

Reply
#5

Quote:
Originally Posted by HardRock
Посмотреть сообщение
Have you.....

PHP код:
public OnGameModeInit()
{
    
ManualVehicleEngineAndLights();

Thanks! It's work!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)