diff --git a/[core]/es_extended/client/modules/actions.lua b/[core]/es_extended/client/modules/actions.lua index 47f3aa4a..4123c485 100644 --- a/[core]/es_extended/client/modules/actions.lua +++ b/[core]/es_extended/client/modules/actions.lua @@ -72,6 +72,12 @@ CreateThread(function() current.displayName, current.netId = GetData(current.vehicle) TriggerEvent('esx:enteredVehicle', current.vehicle, current.plate, current.seat, current.displayName, current.netId) TriggerServerEvent('esx:enteredVehicle', current.plate, current.seat, current.displayName, current.netId) + if Config.DisableVehicleSeatShuff then + if current.seat == 0 then + SetPedIntoVehicle(playerPed, current.vehicle, 0) + SetPedConfigFlag(playerPed, 184, true) + end + end end elseif isInVehicle then if not IsPedInAnyVehicle(playerPed, false) or IsPlayerDead(PlayerId()) then @@ -112,4 +118,4 @@ if Config.EnableDebug then print('esx:exitedVehicle', 'vehicle', vehicle, 'plate', plate, 'seat', seat, 'displayName', displayName, 'netId', netId) end) -end \ No newline at end of file +end