mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
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:
1 parent
94fe76340e
commit
87a5123117
3 files changed
+46
-38
No files matched your search
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user