local TUS = 38 -- https://docs.fivem.net/docs/game-references/controls/ DEFAULT E TUŞU
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local playerPed = PlayerPedId()
if IsPedInAnyVehicle(playerPed, false) then
local vehicle = GetVehiclePedIsIn(playerPed, false)
if IsControlJustPressed(1, TUS) then
local speed = GetEntitySpeed(vehicle)
if speed > 0.0 then
SetVehicleForwardSpeed(vehicle, 0.0)
end
end
end
end
end)