add sborka
This commit is contained in:
34
garrysmod/gamemodes/militaryrp/plugins/hud/sh_plugin.lua
Normal file
34
garrysmod/gamemodes/militaryrp/plugins/hud/sh_plugin.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
local PLUGIN = PLUGIN
|
||||
PLUGIN.name = "Military RP HUD"
|
||||
PLUGIN.author = "Military RP Team"
|
||||
PLUGIN.desc = "Military-themed HUD for Military RP"
|
||||
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
|
||||
function PLUGIN:CanDrawAmmoHUD()
|
||||
return false
|
||||
end
|
||||
|
||||
function PLUGIN:ShouldHideBars()
|
||||
return true
|
||||
end
|
||||
|
||||
-- Настройки для HUD (using localization)
|
||||
ix.option.Add("disablehud", ix.type.bool, false, {
|
||||
category = "optHUD",
|
||||
name = "optDisableHUD",
|
||||
description = "optDisableHUDDesc"
|
||||
})
|
||||
|
||||
ix.option.Add("disableplayerinfo", ix.type.bool, false, {
|
||||
category = "optHUD",
|
||||
name = "optDisablePlayerInfo",
|
||||
description = "optDisablePlayerInfoDesc"
|
||||
})
|
||||
|
||||
if CLIENT then
|
||||
-- Обновление ранга
|
||||
net.Receive("MilitaryRP_RankUpdate", function()
|
||||
-- Здесь можно обновить ранг игрока
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user