Comments (10)
Check to see if the users
table has the license
column.
from esx_xp.
You're a legend! Thank you.. I'll give it a go when I go home at work atm.. I'll let you know if its all OK around 7:00 UK time..
from esx_xp.
Download the latest version from here. I've added a check to see if the
license
column exists, if it doesn't, it uses theidentifier
instead.
Doesn't appear to work for servers with multi-char systems that do not modify the identifier.
For example Kashchars modifies the identifier each time a player joins and selects their char.
There are some scripts that keep them static but have an additional integer example: 1:steam:XXX, 2:steam:XXX and it stays like that even if a person selects their character.
from esx_xp.
Hi, thanks for your response
No it doesn't.. FiveM License is under Identifier column.. I'm using es_extended V1 final..
Do I have to create a column named license? Does you script auto generate licences and store them in DB under license column?
from esx_xp.
Download the latest version from here. I've added a check to see if the license
column exists, if it doesn't, it uses the identifier
instead.
from esx_xp.
hi, it did fix the problem (i van open the bar with Z) but not showing online players
https://prnt.sc/v86iqh
from esx_xp.
Hi mate can you plz tell why doesn't showing online players in leaderboard?
from esx_xp.
still doesnt worek
from esx_xp.
still doesnt worek
Hi is this a question? For me?
If so, yes still doesn't work. Still showing 0 online players..
from esx_xp.
Managed to "half" fix it so far. No errors and the ID's match according to my little debug, but "Z" is not triggering (doesn't show leaderboard or your level) and the /EXSP command does not return correct values.
`ESX = nil
TriggerEvent('esx:getSharedObject', function(obj)
ESX = obj
end)
-- Get Identifier
function GetPlayerLicense(id)
xPlayer = ESX.GetPlayerFromId(id)
if xPlayer and xPlayer ~= nil then
return xPlayer.identifier
end
return false
end
function GetOnlinePlayers(_source, players)
local Active = {}
for _, playerId in ipairs(GetPlayers()) do
local name = GetPlayerName(playerId)
local license = GetPlayerLicense(playerId)
for k, v in pairs(players) do
print(v.identifier .. "/" .. license)
print()
if license == v.license or license == v.identifier then
local Player = {
name = name,
id = playerId,
xp = v.rp_xp,
rank = v.rp_rank
}
-- Current player
if GetPlayerLicense(_source) == license then
Player.current = true
end
if Config.Leaderboard.ShowPing then
Player.ping = GetPlayerPing(playerId)
end
table.insert(Active, Player)
break
end
end
end
return Active
end`
This is what the debug returns: [ script:esx_xp] 1:steam:11000010495713d/1:steam:11000010495713d
Anyone got any other ideas? I am out of them right now.
Edit: That fixed it, just restart your server
from esx_xp.
Related Issues (20)
- screeen issue HOT 1
- level for weapon
- get xp with job
- xp for killing AI and other players HOT 12
- weapon level
- leaderboard busted HOT 1
- Level Up Bug HOT 2
- [HELP] Detach Leaderboard from EXP bar HOT 1
- Nice script HOT 1
- Level Not Up
- 2 of 30 users I have don't work with the system HOT 1
- Leaderboard not updating
- How can I get xp when killing a player? HOT 1
- esx_jobs
- How can player get 2xp for playing 1 minute? HOT 1
- Lock the vehicle when reaching a pre-determined rank
- creating job only for battlepass?
- Invalid ID
- Hi, I have been trying to make it work for when you kill a player, but when testing it with your code, upload the xp all the time until the player revives, do you know any way to fix it?
- hey i want to a level reward but idk how it works im kinda new to lua
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esx_xp.