mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(init): enable ignore_invalid for msgpack
Needed to prevent errors when packing glm polygons and such.
This commit is contained in:
3
init.lua
3
init.lua
@@ -17,6 +17,9 @@ local status = export.hasLoaded()
|
||||
|
||||
if status ~= true then error(status, 2) end
|
||||
|
||||
-- Ignore invalid types during msgpack.pack (e.g. userdata)
|
||||
msgpack.setoption('ignore_invalid', true)
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
-- Module
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user