diff --git a/README.md b/README.md index ec62f9f..48b9066 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,10 @@ Features: If you need any support, feel free to reach out to us via our Discord: https://discord.gg/wzEYNCN7pH +### Version 1.0.2 + +- Fixed issue with debugging in NUI and NUI path if resource is renamed + ### Version 1.0.1 - Fixed issue with getting player source with ESX diff --git a/client/main.lua b/client/main.lua index f114ec2..e903bcf 100644 --- a/client/main.lua +++ b/client/main.lua @@ -111,7 +111,6 @@ RegisterNUICallback('ready', function(_, cb) SendNUIMessage({ action = "init", debug = IR8.Config.Debugging, - resourceName = GetCurrentResourceName(), admin = admin, ticketConfiguration = IR8.Config.TicketConfiguration }) diff --git a/fxmanifest.lua b/fxmanifest.lua index fbbe6f5..9f65244 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -2,7 +2,7 @@ fx_version 'cerulean' game 'gta5' author 'IR8 Scripts' description 'Ticket Manager' -version '1.0.1' +version '1.0.2' lua54 'yes' client_script 'client/main.lua' diff --git a/nui/js/script.js b/nui/js/script.js index 691f828..b08c21f 100644 --- a/nui/js/script.js +++ b/nui/js/script.js @@ -31,7 +31,7 @@ const IR8 = { /** * Debugging */ - debug: true, + debug: false, /** * Admin privs @@ -61,7 +61,7 @@ const IR8 = { IR8.debugPrint(data); return $.ajax({ - url: `https://${IR8.resourceName}/${path}`, + url: `https://${GetParentResourceName()}/${path}`, type: 'POST', dataType: 'json', data: JSON.stringify(data) @@ -438,10 +438,6 @@ const IR8 = { handlers: { init: (data) => { - if (data.resourceName) { - IR8.resourceName = data.resourceName - IR8.debugPrint("Setting resourceName to " + IR8.resourceName); - } if (data.debug) { IR8.debug = data.debug