[Question] How to check if player exit from a specified vehicle ex.: banshee

How can I check if a player exit from a vehicle for ex.: named banshee?

If the ped is in the vehicle, I get the vehicle name:

local ped = GetPlayerPed(-1)
if IsPedInAnyVehicle(ped, true) then
local vehiclename = GetLabelText(GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsUsing(PlayerPedId()))))
if vehiclename == 'banshee' then
--- do things with the vehicle 'banshee'
  end
end

But how can I check if the player is exited from the vehicle?

if you have baseevents started you can use baseevents:leftVehicle
example:

AddEventHandler('baseevents:leftVehicle', function(currentvehicle, seat,name,netid)
--do things
end)

Thank you, but can you write an example with that please?

i did that above, just start script baseevents and then use that handler in your script, it will be triggered when player left the vehicle (and also you can use the values like currentvehicle seat and so on depends on what you want to do)