FiveEYZ / esx_kashacter

esx_kashacters fixed for latest version of ESX.
https://github.com/KASHZIN/kashacters
14 stars 31 forks source link

OnPlayerJoined code issue #11

Open bwheatley opened 4 years ago

bwheatley commented 4 years ago

I think you came into my stream yesterday and helped me with the new version of esx_kashacter I think i found a bug in your code you say to change OnPlayerJoined but you can use the logic from esx_identity

            for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
                if string.match(v, 'steam:') then
                    print("esx_identity:playerConnecting STEAM key " .. k .. " Value: " .. v)
                    identifier = v
                    break
                end
            end
        else
            for k,v in ipairs(GetPlayerIdentifiers(playerId)) do
                if string.match(v, 'license:') then
                    print("esx_identity:playerConnecting LICENSE key " .. k .. " Value: " .. v)
                    identifier = string.sub(v, 9)
                    break
                end
            end
        end

This will let you compare the identifier differently depending on if we're using steam or rockstarID. Just trying to help, when I get it fixed in my fork i'll send over a PR.