How can I check if the player is in Bus now?

Hello, I would like to check if the players is in Bus right now so he can get paid.
How should I make it work?

You could check if the vehicle model is Bus using

local veh = GetVehiclePedIsIn(PlayerPedId())

if GetEntityModel(veh) == GetHashKey("Bus") then
    print("you in a bus you better pay")

Thanks so much! Its work as charm!

1 Like