From b363d6b197e5598562af44062602d40b07396a87 Mon Sep 17 00:00:00 2001 From: ilia <91774373+iamilia@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:39:11 +0330 Subject: [PATCH] better type for ESX.RegisterCommand --- [core]/es_extended/server/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 7ab5f9b4..046bdb4c 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -26,9 +26,9 @@ end ---@param name string | table ---@param group string | table ----@param cb function +---@param cb fun(xPlayer : xPlayer|false, args : table, showError :function ) ---@param allowConsole? boolean ----@param suggestion? table +---@param suggestion? {help:string, validate:boolean, arguments:{name:string, validate:boolean, help:string, type:'number'|'string'|'player'|'coordinate'|'playerId'|'item'|'weapon'|'any'|'merge'}[]} function ESX.RegisterCommand(name, group, cb, allowConsole, suggestion) if type(name) == "table" then for _, v in ipairs(name) do