overextended/ox_core

Adding a license not refresh

CeebDev opened this issue · 1 comments

When you add a license to a player with player.addLicense('truck'), it's not refreshed since you logout and relog

It seems to return false at the insert query, but the insert is good in db

if (!(await AddCharacterLicense(this.charId, licenseName, license))) return false;

AddCharacterLicense return 0 but the insert has been successfully added in db