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
}