OnVehicleSpawn
#5

solved with car tuning


but with engine ?

i need to use /rac first te set engine off to all vehicles

if i don't use this the engine is on to all vehicles ....

PHP код:
public OnVehicleSpawn(vehicleid)
{
if(
IsABike(vehicleid))
    {
        
engineOn[vehicleid] = true;
        new 
enginemlightsalarmdoorsbonnetbootobjective;
        
GetVehicleParamsEx(vehicleid,enginemlightsalarmdoorsbonnetbootobjective);
        
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ONlightsalarmdoorsbonnetbootobjective);
        return 
1;
    }
    else
    {
        
engineOn[vehicleid] = false;
        new 
enginemlightsalarmdoorsbonnetbootobjective;
        
GetVehicleParamsEx(vehicleid,enginemlightsalarmdoorsbonnetbootobjective);
        
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFFlightsalarmdoorsbonnetbootobjective);
    }
    return 
1;

that is my new OnVehicleSpawn



or i need to add the engine script from onvehiclespawn to ongamemodeinit ?
Reply


Messages In This Thread
OnVehicleSpawn - by CaTaLinU - 25.08.2012, 06:56
Re: OnVehicleSpawn - by [MM]RoXoR[FS] - 25.08.2012, 07:10
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:12
Re: OnVehicleSpawn - by Universal - 25.08.2012, 07:17
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:20
Re: OnVehicleSpawn - by [MM]RoXoR[FS] - 25.08.2012, 07:25
Re: OnVehicleSpawn - by CaTaLinU - 25.08.2012, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)