okay cool i typed it
bro the case its everything works cool but when i change any group inside the game its work but im getting this errors in cmd so it will let the cmd lagged more and not cool…
thats print cmd
2
nil
nil
admin
ALsKRaN
user
Founder
Hamad
SCRIPT ERROR: @vrp/modules/group.lua:117: attempt to index a nil value (local ‘groupdef’)
handler (- Proxy interface system, used to add/call functions between resources
local Debug = module(“lib/Debug”)
local Proxy = {}
local proxy_rdata = {}
local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
proxy_rdata = rvalues
end
local function proxy_resolve(itable,key)
local iname = getmetatable(itable).name
– generate access function
local fcall = function(args,callback)
if args == nil then
args = {}
end
TriggerEvent(iname..":proxy",key,args,proxy_callback)
return table.unpack(proxy_rdata) -- returns
end
itable[key] = fcall – add generated call to table (optimization)
return fcall
end
— Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
function Proxy.addInterface(name, itable)
AddEventHandler(name…“:proxy”,function(member,args,callback)
if Debug.active then
Debug.pbegin(“proxy_”…name…“:”…member…" "…json.encode(Debug.safeTableCopy(args)))
end
local f = itable[member]
if type(f) == "function" then
callback({f(table.unpack(args))}) -- call function with and return values through callback
-- CancelEvent() -- cancel event doesn't seem to cancel the event for the other handlers, but if it does, uncomment this
else
--print("error: proxy call "..name..":"..member.." not found")
end
if Debug.active then
Debug.pend()
end
end)
end
function Proxy.getInterface(name)
local r = setmetatable({},{ __index = proxy_resolve, name = name })
return r
end
return Proxy
:39)
removeUserGroup (- Proxy interface system, used to add/call functions between resources
local Debug = module(“lib/Debug”)
local Proxy = {}
local proxy_rdata = {}
local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
proxy_rdata = rvalues
end
local function proxy_resolve(itable,key)
local iname = getmetatable(itable).name
– generate access function
local fcall = function(args,callback)
if args == nil then
args = {}
end
TriggerEvent(iname..":proxy",key,args,proxy_callback)
return table.unpack(proxy_rdata) -- returns
end
itable[key] = fcall – add generated call to table (optimization)
return fcall
end
— Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
function Proxy.addInterface(name, itable)
AddEventHandler(name…“:proxy”,function(member,args,callback)
if Debug.active then
Debug.pbegin(“proxy_”…name…“:”…member…" "…json.encode(Debug.safeTableCopy(args)))
end
local f = itable[member]
if type(f) == "function" then
callback({f(table.unpack(args))}) -- call function with and return values through callback
-- CancelEvent() -- cancel event doesn't seem to cancel the event for the other handlers, but if it does, uncomment this
else
--print("error: proxy call "..name..":"..member.." not found")
end
if Debug.active then
Debug.pend()
end
end)
end
function Proxy.getInterface(name)
local r = setmetatable({},{ __index = proxy_resolve, name = name })
return r
end
return Proxy
:21)
handler (@vrp_escadmin/server/server.lua:42)
2
nil
nil
admin
ACE
Founder
Hamad
SCRIPT ERROR: @vrp/modules/group.lua:117: attempt to index a nil value (local ‘groupdef’)
handler (- Proxy interface system, used to add/call functions between resources
local Debug = module(“lib/Debug”)
local Proxy = {}
local proxy_rdata = {}
local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
proxy_rdata = rvalues
end
local function proxy_resolve(itable,key)
local iname = getmetatable(itable).name
– generate access function
local fcall = function(args,callback)
if args == nil then
args = {}
end
TriggerEvent(iname..":proxy",key,args,proxy_callback)
return table.unpack(proxy_rdata) -- returns
end
itable[key] = fcall – add generated call to table (optimization)
return fcall
end
— Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
function Proxy.addInterface(name, itable)
AddEventHandler(name…“:proxy”,function(member,args,callback)
if Debug.active then
Debug.pbegin(“proxy_”…name…“:”…member…" "…json.encode(Debug.safeTableCopy(args)))
end
local f = itable[member]
if type(f) == "function" then
callback({f(table.unpack(args))}) -- call function with and return values through callback
-- CancelEvent() -- cancel event doesn't seem to cancel the event for the other handlers, but if it does, uncomment this
else
--print("error: proxy call "..name..":"..member.." not found")
end
if Debug.active then
Debug.pend()
end
end)
end
function Proxy.getInterface(name)
local r = setmetatable({},{ __index = proxy_resolve, name = name })
return r
end
return Proxy
:39)
removeUserGroup (- Proxy interface system, used to add/call functions between resources
local Debug = module(“lib/Debug”)
local Proxy = {}
local proxy_rdata = {}
local function proxy_callback(rvalues) – save returned values, TriggerEvent is synchronous
proxy_rdata = rvalues
end
local function proxy_resolve(itable,key)
local iname = getmetatable(itable).name
– generate access function
local fcall = function(args,callback)
if args == nil then
args = {}
end
TriggerEvent(iname..":proxy",key,args,proxy_callback)
return table.unpack(proxy_rdata) -- returns
end
itable[key] = fcall – add generated call to table (optimization)
return fcall
end
— Add event handler to call interface functions (can be called multiple times for the same interface name with different tables)
function Proxy.addInterface(name, itable)
AddEventHandler(name…“:proxy”,function(member,args,callback)
if Debug.active then
Debug.pbegin(“proxy_”…name…“:”…member…" "…json.encode(Debug.safeTableCopy(args)))
end
local f = itable[member]
if type(f) == "function" then
callback({f(table.unpack(args))}) -- call function with and return values through callback
-- CancelEvent() -- cancel event doesn't seem to cancel the event for the other handlers, but if it does, uncomment this
else
--print("error: proxy call "..name..":"..member.." not found")
end
if Debug.active then
Debug.pend()
end
end)
end
function Proxy.getInterface(name)
local r = setmetatable({},{ __index = proxy_resolve, name = name })
return r
end
return Proxy
:21)
handler (@vrp_escadmin/server/server.lua:42)