Files
Jacob 775709ddef New Improvements & Bug Fixes
+ Added new Wheel-Damage script which causes wheels to fly off if the car is hit hard.
+ Added newer version of the police siren LVC menu.
+ Changed a bunch of keybinds in order to facilitate FivePD.
+ Readded the accidentally removed emote menu and removed NoDriveBy.
+ Updated the server theme alittle away from just RP.
+ Updated to server artifacts version to 6372
2023-04-02 20:38:32 +01:00

99 lines
1.7 KiB
Lua

---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by Dylan Malandain.
--- DateTime: 29/10/2019 02:40
---
---@class RageUI
RageUI = {}
---@class Item
RageUI.Item = {}
---@class Panel
RageUI.Panel = {}
---@class Window
RageUI.Window = {}
---@class RMenu
RMenu = setmetatable({}, RMenu)
---@type table
local TotalMenus = {}
---Add
---@param Type string
---@param Name string
---@param Menu table
---@return RMenu
---@public
function RMenu.Add(Type, Name, Menu)
if RMenu[Type] ~= nil then
RMenu[Type][Name] = {
Menu = Menu
}
else
RMenu[Type] = {}
RMenu[Type][Name] = {
Menu = Menu
}
end
return table.insert(TotalMenus, Menu)
end
---Get
---@param Type string
---@param Name string
---@return table
---@public
function RMenu:Get(Type, Name)
if self[Type] ~= nil and self[Type][Name] ~= nil then
return self[Type][Name].Menu
end
end
---GetType
---@param Type string
---@return table
---@public
function RMenu:GetType(Type)
if self[Type] ~= nil then
return self[Type]
end
end
---Settings
---@param Type string
---@param Name string
---@param Settings string
---@param Value any optional
---@return void
---@public
function RMenu:Settings(Type, Name, Settings, Value)
if Value ~= nil then
self[Type][Name][Settings] = Value
else
return self[Type][Name][Settings]
end
end
---Delete
---@param Type string
---@param Name string
---@return void
---@public
function RMenu:Delete(Type, Name)
self[Type][Name] = nil
collectgarbage()
end
---DeleteType
---@param Type string
---@return void
---@public
function RMenu:DeleteType(Type)
self[Type] = nil
collectgarbage()
end