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

+2 -1
View File
@@ -3,13 +3,14 @@ game 'common'
name 'oxmysql'
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
version '1.8.3'
version '1.8.4'
url 'https://github.com/overextended/oxmysql'
author 'overextended'
use_fxv2_oal 'yes'
lua54 'yes'
server_scripts {
-- '/server:4837', Disabled until the heat death of the universe (or recommended artifact updates)
'oxmysql.js',
'wrapper.lua'
}