About opening a trunk & first vehicle id?
#1

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?
Reply
#2

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);
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)