Ok, after some research I found the code.
Replace the original function with this or just add a new Plugin
------------------------------
[code]
_InvulnerabilityWhenLeaveVehicle = false; -- set to true if you WANT Invulnerability after leaving vehicle
g_gameRules.OnLeaveVehicleSeat=function(self,vehicle, seat, entityId, exiting)
MakePluginEvent("OnLeaveVehicleSeat",vehicle,seat,entityId,exiting);
if (self.isServer and self:GetState()=="InGame") then
if (exiting) then
local empty=true;
for i,seat in pairs(vehicle.Seats) do
local passengerId = seat:GetPassengerId();
if (passengerId and passengerId~=NULL_ENTITY and passengerId~=entityId) then
empty=false;
break;
end
end
if (empty) then
vehicle.lastOwnerId=entityId;
local player=System.GetEntity(entityId);
if (player) then
player.lastVehicleId=vehicle.id;
end
end
if(entityId==vehicle.vehicle:GetOwnerId()) then
vehicle.vehicle:SetOwnerId(NULL_ENTITY);
end
if vehicle.class=="US_vtol" or vehicle.class=="Asian_helicopter" and _InvulnerabilityWhenLeaveVehicle then
g_gameRules.game:SetInvulnerability(entityId,true,(vehicle.vehicle:GetMovementType()=="air" and 2 or 1));
end
end
end
end
[/code]
------------------------------
Hope this helped you! :D
1