fix: JS sync exports check

Since JS is such a bad language it throws an error when doing `variable !== undefined`, so wrap the whole thing in a try block and catch the error.
This commit is contained in:
Linden committed 2021-12-04 03:22:53 +11:00
1 parent 94fe76340e
commit 87a5123117
3 files changed
+46 -38

No files matched your search

+3 -2
View File
@@ -28,8 +28,9 @@ CreateThread(function()
end, 'GET')
end)
-- Check for a recent native since the recommended artifact doesn't support JS async_retval or dependency constraints
if not GetEntityAttachedTo then
-- Check for the existance of a native from FXServer 4837 to disable Lua exports
-- Shame dependency constraints were added immediately after the recommended build
if not MumbleSetPlayerMuted then
---@param query string
---@param parameters? table