代码:
InvokeNative: execution failed: Argument at index 0 was null.
[ script:qb-core] SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:739: SCRIPT ERROR: @qb-core/server/player.lua:194:
[ script:qb-core] An error occurred while calling export `LoadInventory` in resource `ps-inventory`:
[ script:qb-core] citizen:/scripting/lua/scheduler.lua:739: SCRIPT ERROR: Execution of native 00000000406b4b20 in script host failed: Argument at index 0 was null.
[ script:qb-core] > GetPlayerName (GetPlayerName.lua:3)
[ script:qb-core] > ref (@ps-inventory/server/main.lua:51)
[ script:qb-core] > rawExecute (@oxmysql/dist/build.js:26552)
[ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:qb-core]
[ script:qb-core] ---
[ script:qb-core] > [global chunk] (@qb-core/server/player.lua:194)
[ script:qb-core] > rawExecute (@oxmysql/dist/build.js:26552)
[ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:qb-core]
[ script:qb-core] > ref (@qb-management/server/sv_boss.lua:45)
[ script:qb-core] > rawExecute (@oxmysql/dist/build.js:26552)
[ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:qb-core]
[ script:qb-core] > TriggerCallback (@qb-core/server/functions.lua:365)
[ script:qb-core] > handler (@qb-core/server/events.lua:104)
[ script:qb-core] > rawExecute (@oxmysql/dist/build.js:26552)
[ script:qb-core] > processTicksAndRejections (node:internal/process/task_queues:96)