About opening a trunk & first vehicle id? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: About opening a trunk & first vehicle id? (
/showthread.php?tid=371495)
About opening a trunk & first vehicle id? -
ddnbb - 23.08.2012
Hey guys, is this the real way to open a vehicles trunk? Because it doesnt seem to work, i've tried with many different vehicles.
pawn Код:
new engine,lightss,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicle,engine,lightss,alarm,doors,bonnet,boot,objective);
if(boot == 0) SetVehicleParamsEx(vehicle,engine,lightss,alarm,doors,bonnet,1,objective);
And where i could get all vehicle ID's that haves openable trunk?
Re: About opening a trunk & first vehicle id? -
kbalor - 23.08.2012
Quote:
Originally Posted by ddnbb
Hey guys, is this the real way to open a vehicles trunk? Because it doesnt seem to work, i've tried with many different vehicles.
pawn Код:
new engine,lightss,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicle,engine,lightss,alarm,doors,bonnet,boot,objective); if(boot == 0) SetVehicleParamsEx(vehicle,engine,lightss,alarm,doors,bonnet,1,objective);
And where i could get all vehicle ID's that haves openable trunk?
|
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);
else SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);
Re: About opening a trunk & first vehicle id? -
ddnbb - 23.08.2012
Quote:
Originally Posted by kbalor
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); if(boot == VEHICLE_PARAMS_OFF || boot == VEHICLE_PARAMS_UNSET) SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective); else SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);
|
Thanks alot, it works that way.
How about getting all those vehicles that haves a trunk?