mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Merge pull request #930 from Thekuca/patch-3
feat(es_extended/client/modules/actions.lua): Added disable seat shuff (PART 2)
This commit is contained in:
@@ -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
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user