Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed Oct 13, 2020
1 parent 3e55972 commit 7bdcc3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description 'XP Ranking System'

author 'Karl Saunders'

version '1.2.0'
version '1.2.1'

server_scripts {
'@mysql-async/lib/MySQL.lua',
Expand Down
12 changes: 8 additions & 4 deletions ui/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,15 @@ function UIClose() {
}

function PostData(type) {
fetch(`https://esx_xp/${type}`, {
fetch(`https://${GetParentResourceName()}/${type}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json; charset=UTF-8' },
body: JSON.stringify({})
}).catch(error => console.log('ESX_XP FETCH ERROR! ' + error.message));
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
body: JSON.stringify({
currentID
})
}).then(resp => resp.json()).then(resp => console.log(resp));
}

window.onData = function (data) {
Expand Down
1 change: 1 addition & 0 deletions utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function GetOnlinePlayers(_source, players)
rank = v.rp_rank
}

-- Current player
if GetPlayerLicense(_source) == v.license then
Player.current = true
end
Expand Down

0 comments on commit 7bdcc3f

Please sign in to comment.