Welcome to the forum, Guest

To access forum content and all of our services, you must register or log in to the forum. Joining the forum and all content on the forum is completely free.

The world's largest FiveM Forum and GTA 5 Forum address

Hello dear member,
We work 24/7 to provide the most valuable content that will be of use to you,
you can share content and support the entire FiveM & GTA 5 community.

Script [QBCore] Show ID Card

SusXprO

Bronze Elite
Joined
Mar 15, 2021
Messages
18
Reaction score
1
Points
96
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

Bronze Elite
Joined
Jul 10, 2021
Messages
15
Reaction score
5
Points
106
How to make it work on new qb core ? :/
 

mefon_0

Bronze Elite
Joined
Jul 10, 2021
Messages
15
Reaction score
5
Points
106
When I use it, I still see old style popup
 

falcon164

Bronze Elite
Joined
Oct 26, 2021
Messages
6
Reaction score
4
Points
16
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.
 

Login or register to get more out of the forum!

Login or register to get more out of the forum!

Register

Creating an account on the forum is completely free.

Register now
Log in

If you have an account, please login

Log in

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds