fix(PR): Fixed the PR code

This commit is contained in:
Thekuca
2023-03-08 20:22:08 +01:00
committed by GitHub
parent 84edbd9a54
commit 513dbf7e12
@@ -56,12 +56,6 @@ CreateThread(function()
isEnteringVehicle = true
TriggerEvent('esx:enteringVehicle', vehicle, plate, seat, netId)
TriggerServerEvent('esx:enteringVehicle', plate, seat, netId)
if Config.DisableVehicleSeatShuff then
if seat == 0 then
SetPedIntoVehicle(playerPed, vehicle, 0)
SetPedConfigFlag(playerPed, 184, true)
end
end
elseif not DoesEntityExist(GetVehiclePedIsTryingToEnter(playerPed)) and
not IsPedInAnyVehicle(playerPed, true) and isEnteringVehicle then
-- vehicle entering aborted