Git Product home page Git Product logo

Comments (10)

Mobius1 avatar Mobius1 commented on September 23, 2024 1

Check to see if the users table has the license column.

from esx_xp.

kamuzaki avatar kamuzaki commented on September 23, 2024 1

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.

ScaredDonut avatar ScaredDonut commented on September 23, 2024 1

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.

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.

kamuzaki avatar kamuzaki commented on September 23, 2024

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.

Mobius1 avatar Mobius1 commented on September 23, 2024

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.

kamuzaki avatar kamuzaki commented on September 23, 2024

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.

kamuzaki avatar kamuzaki commented on September 23, 2024

Hi mate can you plz tell why doesn't showing online players in leaderboard?

from esx_xp.

SwAtRaNgEr avatar SwAtRaNgEr commented on September 23, 2024

still doesnt worek

from esx_xp.

kamuzaki avatar kamuzaki commented on September 23, 2024

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.

ScaredDonut avatar ScaredDonut commented on September 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.