What's new

Script [QBCore] Show ID Card

fefimex176

“Let him ride a horse. He's a cowboy ain't he?”
Gold Elite
Joined
Jul 11, 2021
Messages
96
Reaction score
1,079
Points
301
Location
Los Santos
VT:
Download:
Preview:
Framework: QBus or New QBCore

card.png
 

SusXprO

Silver Elite
Joined
Mar 15, 2021
Messages
37
Reaction score
16
Points
156
brother i m not understand readme last lines..

document.onkeyup = function (data) {
if (data.which == 27) { // Escape key
$.post(' ', JSON.stringify({}));
}
}
where need to be add this lines?
 

mefon_0

Silver Elite
Joined
Jul 10, 2021
Messages
34
Reaction score
18
Points
166
How to make it work on new qb core ? :/
 

mefon_0

Silver Elite
Joined
Jul 10, 2021
Messages
34
Reaction score
18
Points
166
When I use it, I still see old style popup
 

falcon164

Bronze Elite
Joined
Oct 26, 2021
Messages
13
Solutions
1
Reaction score
9
Points
166
Location
South Carolina
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.
 

itsYikkers

Member
Joined
Apr 3, 2022
Messages
1
Reaction score
0
Points
156
Location
United States
Hey. How do you actually pull out the ID or ask someone to show us their id? What is the keybind?
 
Top