Skip to content

Commit

Permalink
Version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Jul 17, 2024
1 parent 202ee3a commit 1bed958
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ RegisterNUICallback('ready', function(_, cb)
SendNUIMessage({
action = "init",
debug = IR8.Config.Debugging,
resourceName = GetCurrentResourceName(),
admin = admin,
ticketConfiguration = IR8.Config.TicketConfiguration
})
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
8 changes: 2 additions & 6 deletions nui/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const IR8 = {
/**
* Debugging
*/
debug: true,
debug: false,

/**
* Admin privs
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1bed958

Please sign in to comment.