local switch = false
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('nb', function()
switch = not switch
setCharCanBeKnockedOffBike(PLAYER_PED, switch)
end)
while true do
wait(0)
if switch and isCharInAnyCar(PLAYER_PED) and isCarInWater(storeCarCharIsInNoSave(PLAYER_PED)) then
setCharCanBeKnockedOffBike(PLAYER_PED, false)
switch = false
end
end
end