SA-MP Forums Archive
Open Vehicle Doors - 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: Open Vehicle Doors (/showthread.php?tid=539923)



Open Vehicle Doors - Sascha - 01.10.2014

Hi guys,

I'm searching a way to open the door of a vehicle and keep it open (I mean "open" and not "unlocked"). The problem is, that if I use

pawn Код:
CMD:open(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
    UpdateVehicleDamageStatus(vehicleid, panels, 65536, lights, tires);
    return 1;
}
the character opens the door but immediatly closes it again. I need the door to remain open... anyone having an idea, how to do that?


Re: Open Vehicle Doors - Rudy_ - 01.10.2014

Just when the character opens the door, try using
pawn Код:
ClearAnimations(playerid);
or TogglePlayerControllable for some ms?