When I use it, I still see old style popup
I'm sure you have figured it out and then some by now but if not you need to remove this whole function from qb-inventory/server.lua
--[[QBCore.Functions.CreateUseableItem("driver_license", function(source, item)
for k, v in pairs(QBCore.Functions.GetPlayers()) do
local PlayerPed = GetPlayerPed(source)
local TargetPed = GetPlayerPed(v)
local dist = #(GetEntityCoords(PlayerPed) - GetEntityCoords(TargetPed))
if dist < 3.0 then
TriggerClientEvent('chat:addMessage', v, {
template = '<div class="chat-message advert"><div class="chat-message-body"><strong>{0}:</strong><br><br> <strong>First Name:</strong> {1} <br><strong>Last Name:</strong> {2} <br><strong>Birth Date:</strong> {3} <br><strong>Licenses:</strong> {4}</div></div>',
args = {
"Drivers License",
item.info.firstname,
item.info.lastname,
item.info.birthdate,
item.info.type
}
}
)
end
end
end)]]
anything between this --[[ anything here will not be executed]] will be commented out. So do that for the driver_license and id_card and they will no longer show up in chat.