💡New QBCore Adapt
The necessary codes for New QBCore frameworks are as follows.
Incomplete or incorrect installation will result in a multicharacter error and will not save your new characters.
qb-multicharacter should be disabled or deprecated.
Visit this folder for the changes we will make.
qb-core/server/player.lua
Find the specified function function QBCore.Player.Login(source, citizenid, newData)
Function should be found. else part of if citizenid then query should be opened
the function QBCore.Player.CheckPlayerData(source, newData) should be made as follows.
After pasting the code above, it should look like below.
After this section is made as above, the following path should be followed.
function QBCore.Player.CreatePlayer(PlayerData, Offline) The specified function must be found and go to the last line of this function.
Then the following codes should be pasted
After pasting the code above, it should look like below.
Only the return code content in the last line is important. Pay no attention to other lines of code.
Last updated