...Hey
#1

Anyways an easy question for you guys,

Is there any way i can use the GetVehicleParamsEx, to know that if vehicle has its light on or off?

GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors, bonnet,boot,objective);

For Example
Код:
if(GetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective))
{
   GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
   SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
   return 1;
}
else if(GetVehicleParamsEx(vehicleid,engine,0,alarm,doors,bonnet,boot,objective))
{
   GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
   SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
   return 1;

}
Something like this?
Reply
#2

pawn Код:
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights == 1)
{
    //Lights on
}
else
{
    //Lights off
}
Reply
#3

Yeah, thanks worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)