lib.onCache('vehicle', function(value, oldValue)
local isMotorcycle = GetVehicleClass(value) == 8
if not isMotorcycle then return end
SetPedHelmet(cache.ped, false)
RemovePedHelmet(cache.ped, true)
end)
Add in any client side file/client.lua
This should remove or not have the player ped put on the helmet whenever they get on a motorcycle