#db error for license identifier

1 messages · Page 1 of 1 (latest)

empty anchor
#

I have a few players who joined my server that only have a license but cant see already made characters due to the need for license2. I have worked with them for the last few hours trying to get their license2 identifier they have opened and linked both steam, rockstar social/launcher and cfx forums. Neither allows their license2 identifier to populate when TxAdmin is checked for it. its like it doesnt exist for them.

quasi dune
#

maybe that'll help. im unsure tho

empty anchor
#

we tried everything in this and none of it worked

#

his license 2 popped up one time but then dropped shortly after

quasi dune
#

I've never had any issues with license2 so im not sure

#

@haughty condor You ever had any issues?

haughty condor
#

Why do you need the license2?

empty anchor
#

because the database runs only license2. all of my players only have license2 except one player. everyone else can see their chars, this license player has to keep remaking his character over and over

haughty condor
#

What leads you to believe the database only runs license2?

quasi dune
#

hes right. it does

empty anchor
#

because from everyone i spoke to qbox is only license2

haughty condor
#

Do you have any errors on the server console?

quasi dune
#

or we might just have it default to license2 with license as a backup. so idk

haughty condor
empty anchor
#

no errors in console regarding qbx_core as that is where the multicharacter is handled

quasi dune
#

wait

haughty condor
#

Which version of core are you on?

quasi dune
#

hes the only one who cant see other players?

#

or is it everybody

#

if youre using core v1.13.0, downgrade to v1.12.0

empty anchor
#

no its not about seeing players he cant see his own character when he logs in. the multicharacter makes him create himself over and over again

#

goes straight to identity

quasi dune
#

so its an issue of his character / playerskin not saving?

empty anchor
#

it saves in the database i can see it, but it doesnt push to him when he opens the server and tries to select his character

quasi dune
#

does he see it in his selection?

empty anchor
#

nope it automatically makes him select an empty slot and create a character again.

#

then it duplicates said character in the db

quasi dune
#

and what populates in the license field

empty anchor
#

license:43814930trequ90fud90fas8dr9380

#

thats not his number but you know

quasi dune
#

yea so its just a normal license then

empty anchor
#

yeah his steam license

#

as license2: is rockstar license correct?

quasi dune
#

and you havent edited your core at all?

empty anchor
#

nope

#

otherwise i feel like i would have more players that are messed. Hes the first one

quasi dune
#

because we take both licenses

#

we fetch by one or the other

quasi dune
quasi dune
sour ore
#

@empty anchor if you look at the player in the txadmin console do you see a license2 being populated? I've had users in the past the reinstalled but forgot their CFX account or something else and then got a new license/license2. If it's only affecting one user this might be the case.

empty anchor
#

we have tried relinking cfx account, redownloading fivem, gta, and rockstar launcher/social his license2 only populated once and then immediately dissapeared.

sour ore
#

so in the txadmin console they have no license2 present?

empty anchor
#

no they dont

sour ore
#

thats a big headscratcher there then. Which multicharacter are you using, the qbx_core internal or an external multicharacter?

empty anchor
#

i tried the qbx base MC and then switched to VMS-Multichars tried both on my dev server so not to mess up the main server while live

sour ore
#

is the VMS one an escrowed resource? I can't find their docs page for it

empty anchor
#

it is not i bought the OS version i can link their docs

sour ore
#

yeah if you can link the docs that would be helpful. I got a few minutes before I have to head out

sour ore
#

hmm. if you search through the code for Config.Identifier do they all reference license or license2?

empty anchor
#

its the qbox oriented one so it references license2

#

they have 3 downloads ESX, QB, and QBOX in the original download folder

sour ore
#

gotcha. yeah i saw there is notes for a qbox version. looking at his docs though it seems to reference resource names as qbx- vice qbx_. Was more curious what SQL statement is being run to lookup the characters to give you in the character select.

empty anchor
#
    local slots = MySQL.scalar.await('SELECT slots FROM multichars_slots WHERE identifier = ?', {identifier}) or SLOTS
    MySQL.query('SELECT * FROM players WHERE license = ?', {identifier}, function(result)```
sour ore
#

aight hold. i think i can fix ya

empty anchor
#

ive tried similar to how the qbx multichar ran like matthew posted above #1245955895763140618 message

sour ore
#

Try this

local license, license2 = GetPlayerIdentifierByType(source --[[@as string]], 'license'), GetPlayerIdentifierByType(source --[[@as string]], 'license2')
local identifier = license2 or license
    local slots = MySQL.scalar.await('SELECT slots FROM multichars_slots WHERE identifier = ?', {identifier}) or SLOTS
    MySQL.query('SELECT * FROM players WHERE license = ?', {identifier}, function(result)```
empty anchor
#

aight

sour ore
#

gotta run for a bit though. I'll check in here later today

empty anchor
#

ok im going to bed myself i will test in the morning and report back any finds

empty anchor
sour ore
#

Well that’s a solid. Still super bizarre that individual doesn’t have a license2

empty anchor
#

i actually have like 5 people in my server who dont have them.