mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +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
|
if Config.DisableWeaponWheel or Config.DisableAimAssist or Config.DisableVehicleRewards then
|
||||||
CreateThread(function()
|
CreateThread(function()
|
||||||
while true do
|
while true do
|
||||||
|
if Config.DisableDisplayAmmo then
|
||||||
|
DisplayAmmoThisFrame(false)
|
||||||
|
end
|
||||||
|
|
||||||
if Config.DisableWeaponWheel then
|
if Config.DisableWeaponWheel then
|
||||||
BlockWeaponWheelThisFrame()
|
BlockWeaponWheelThisFrame()
|
||||||
DisableControlAction(0, 37, true)
|
DisableControlAction(0, 37, true)
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ Config.DisableScenarios = false -- Disable Scenarios
|
|||||||
Config.DisableWeaponWheel = false -- Disables default weapon wheel
|
Config.DisableWeaponWheel = false -- Disables default weapon wheel
|
||||||
Config.DisableAimAssist = false -- disables AIM assist (mainly on controllers)
|
Config.DisableAimAssist = false -- disables AIM assist (mainly on controllers)
|
||||||
Config.DisableVehicleSeatShuff = false -- Disables vehicle seat shuff
|
Config.DisableVehicleSeatShuff = false -- Disables vehicle seat shuff
|
||||||
|
Config.DisableDisplayAmmo = false -- Disable ammunition display
|
||||||
Config.RemoveHudComponents = {
|
Config.RemoveHudComponents = {
|
||||||
[1] = false, --WANTED_STARS,
|
[1] = false, --WANTED_STARS,
|
||||||
[2] = false, --WEAPON_ICON
|
[2] = false, --WEAPON_ICON
|
||||||
|
|||||||
Reference in New Issue
Block a user