mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +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
|
if status ~= true then error(status, 2) end
|
||||||
|
|
||||||
|
-- Ignore invalid types during msgpack.pack (e.g. userdata)
|
||||||
|
msgpack.setoption('ignore_invalid', true)
|
||||||
|
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
-- Module
|
-- Module
|
||||||
-----------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user