Page 1 of 1

Bürger: /Scripting/lua/scheduler.lua: 90: Versuch, einen Null -Wert zu nennen (UpValue 'Fn')

Posted: 12 Feb 2025, 07:21
by Guest
Zeilen
Fehler
Hallo,
Irgendwelche Idee, diese zu lösen? < Br /> Danke < /p>

Code: Select all

local function getBoundaryFunc(bfn, bid)
return function(fn, ...)
local boundary = bid
if not boundary then
boundary = boundaryIdx + 1
boundaryIdx = boundary
end

bfn(boundary, coroutine_running())

local wrap = function(...)
dummyUseBoundary(boundary)

local v = table_pack(fn(...))
return table_unpack(v)
end

local v = table_pack(wrap(...))

bfn(boundary, nil)

return table_unpack(v)
end
end

local runWithBoundaryStart = getBoundaryFunc(Citizen.SubmitBoundaryStart)
local runWithBoundaryEnd = getBoundaryFunc(Citizen.SubmitBoundaryEnd)