Skip to content

Commit

Permalink
fix: fixed add criminal for qbcore
Browse files Browse the repository at this point in the history
  • Loading branch information
BubbleDK committed Sep 11, 2024
1 parent fdae610 commit 2c37eb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/framework/qb_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,16 @@ local selectCharacters = [[
players
]]

local selectCharactersFilter = [[
local selectCharactersFilter = selectCharacters .. [[
WHERE
players.citizenid LIKE ?
OR CONCAT(
JSON_UNQUOTE(JSON_EXTRACT(players.charinfo, '$.firstname')),
' ',
JSON_UNQUOTE(JSON_EXTRACT(players.charinfo, '$.lastname'))
) LIKE ?
GROUP BY
players.citizenid
]]

function qb.getCharacters(parameters, filter)
Expand Down Expand Up @@ -689,4 +691,4 @@ function qb.setOfficerRank(data)
return true
end

return qb
return qb

0 comments on commit 2c37eb5

Please sign in to comment.