02.02.2011, 21:09
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
Something like this?
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; }