From 1a8d502c41fd8c05dd9422840f111713567bb386 Mon Sep 17 00:00:00 2001 From: DyaMetR Date: Mon, 19 Aug 2024 17:00:51 +0200 Subject: [PATCH] Added support for Counter-Strike buy menu addon --- lua/autorun/gta3hud/add-ons/cstrikebuymenu.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lua/autorun/gta3hud/add-ons/cstrikebuymenu.lua diff --git a/lua/autorun/gta3hud/add-ons/cstrikebuymenu.lua b/lua/autorun/gta3hud/add-ons/cstrikebuymenu.lua new file mode 100644 index 0000000..8be9cdb --- /dev/null +++ b/lua/autorun/gta3hud/add-ons/cstrikebuymenu.lua @@ -0,0 +1,10 @@ +--[[------------------------------------------------------------------ + Support for Goldsrc Counter-Strike Buymenu. + https://steamcommunity.com/sharedfiles/filedetails/?id=3311934020 +]]-------------------------------------------------------------------- + +hook.Add('GTA3HUD_GetMoney', 'cstrikebuymenu', function() + local money = LocalPlayer():GetNW2Int('cstrike_money', -1) + if money == -1 then return end + return money +end) \ No newline at end of file