QB-Target Script Error / Permissions Error need help

(node:178) UnhandledPromiseRejectionWarning: Error: qb-core was unable to execute a query!
Incorrect string value: '\xF0\x9F\x95\x8A\xEF\xB8...' for column `s939188_kcbtgbitch`.`permissions`.`name` at row 1
INSERT INTO permissions (name, license, permission) VALUES (?, ?, ?) ["🕊️ Justin Timberlake🕊️","license:faeb3f20b89cdf1339b9c10ef3ee570d57f20b18","mod"]
    at @oxmysql/dist/build.js:21786:11
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async rawQuery (@oxmysql/dist/build.js:21755:10)
(Use `FXServer --trace-warnings ...` to show where the warning was created)

And then this

SCRIPT ERROR: @qb-target/client.lua:198 attempt tp call a nil value (global 'LeaveTarget')

try
add_principal identifier.license:yourlicense qbcore.god
or
add_principal identifier.fivem:yourlicense qbcore.god

for the qb-target errors, it is a SQL issue. Specifically qb-core sql.
Can you show how the table is setup?

fir the script error refer to the exports in qb-target

local qtargetExports = {

["raycast"] = RaycastCamera,

["DisableNUI"] = DisableNUI,

["LeaveTarget"] = LeftTarget,

["DisableTarget"] = DisableTarget,

["DrawOutlineEntity"] = DrawOutlineEntity,

["CheckEntity"] = CheckEntity,

["CheckBones"] = CheckBones,

["AddCircleZone"] = AddCircleZone,

["AddBoxZone"] = AddBoxZone,

["AddPolyZone"] = AddPolyZone,

["AddComboZone"] = AddComboZone,

["AddEntityZone"] = AddEntityZone,

["RemoveZone"] = RemoveZone,

["AddTargetBone"] = AddTargetBone,

["RemoveTargetBone"] = RemoveTargetBone,

["AddTargetEntity"] = AddTargetEntity,

["RemoveTargetEntity"] = RemoveTargetEntity,

["AddTargetModel"] = AddTargetModel,

["RemoveTargetModel"] = RemoveTargetModel,

["Ped"] = AddGlobalPed,

["Vehicle"] = AddGlobalVehicle,

["Object"] = AddGlobalObject,

["Player"] = AddGlobalPlayer,

["RemovePed"] = RemoveGlobalPed,

["RemoveVehicle"] = RemoveGlobalVehicle,

["RemoveObject"] = RemoveGlobalObject,

["RemovePlayer"] = RemoveGlobalPlayer,

["IsTargetActive"] = IsTargetActive,

["IsTargetSuccess"] = IsTargetSuccess,

["GetType"] = GetGlobalTypeData,

["GetZone"] = GetZoneData,

["GetTargetBone"] = GetTargetBoneData,

["GetTargetEntity"] = GetTargetEntityData,

["GetTargetModel"] = GetTargetModelData,

["GetPed"] = GetGlobalPedData,

["GetVehicle"] = GetGlobalVehicleData,

["GetObject"] = GetGlobalObjectData,

["GetPlayer"] = GetGlobalPlayerData,

["UpdateType"] = UpdateGlobalTypeData,

["UpdateZoneOptions"] = UpdateZoneData,

["UpdateTargetBone"] = UpdateTargetBoneData,

["UpdateTargetEntity"] = UpdateTargetEntityData,

["UpdateTargetModel"] = UpdateTargetModelData,

["UpdatePed"] = UpdateGlobalPedData,

["UpdateVehicle"] = UpdateGlobalVehicleData,

["UpdateObject"] = UpdateGlobalObjectData,

["UpdatePlayer"] = UpdateGlobalPlayerData,

["AllowTargeting"] = AllowTargeting

}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.