mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
feat: be able to disable ammunition display
This commit is contained in:
@@ -91,6 +91,10 @@ AddEventHandler('esx:playerLoaded', function(xPlayer, isNew, skin)
|
||||
if Config.DisableWeaponWheel or Config.DisableAimAssist or Config.DisableVehicleRewards then
|
||||
CreateThread(function()
|
||||
while true do
|
||||
if Config.DisableDisplayAmmo then
|
||||
DisplayAmmoThisFrame(false)
|
||||
end
|
||||
|
||||
if Config.DisableWeaponWheel then
|
||||
BlockWeaponWheelThisFrame()
|
||||
DisableControlAction(0, 37, true)
|
||||
|
||||
@@ -58,6 +58,7 @@ Config.DisableScenarios = false -- Disable Scenarios
|
||||
Config.DisableWeaponWheel = false -- Disables default weapon wheel
|
||||
Config.DisableAimAssist = false -- disables AIM assist (mainly on controllers)
|
||||
Config.DisableVehicleSeatShuff = false -- Disables vehicle seat shuff
|
||||
Config.DisableDisplayAmmo = false -- Disable ammunition display
|
||||
Config.RemoveHudComponents = {
|
||||
[1] = false, --WANTED_STARS,
|
||||
[2] = false, --WEAPON_ICON
|
||||
|
||||
Reference in New Issue
Block a user