[ESX] Mobile Data Terminal | Reports, warrants, calls, searches & more

i was trying and the full name and surname but didin’t work, just show the finding

If your characters are saved in a different table, you will have to edit the SQL statements in sv_mdt.lua to select from the correct place. The installation does say that you should use the release version of esx_identity which stores characters in a table named characters.

Can’t submit the report. Database contains what it needs…

1 Like

LOL this NoPixel MDT :relieved:

Its not the same one its similar not exact tho…

Please follow these steps:

If you are using a table named users to store characters and this table already has a column named identifier as a primary key, you will have to use this edited file of sv_mdt.lua and use the database structure below for step 2.
sv_mdt.lua (23.8 KB)
user_mdt.sql (1.4 KB)

2 Likes

Now works! :smiley:
Using users and with these files works 100%.
Th u vmuch! ^^

It seems with your modified version when I perform a player search it selects the top entry in the list no matter what I select

1 Like

I don’t quite understand, could you send me an example please?

Thanks, now it’s working perfect

1 Like

Thats true so we have to add a line for the police number

here you go :love_letter:

Calls for me still are not going the cad its so weird.

Hi. I’ve changed in the
“sv_mdt”, the lines corresponding to “characters”, since we don’t use that table. However, even though I make the changes, the tablet does not register the officer in question at the top and when I try to generate a new report, the button to create such report does not appear. Can you help me identify what I am doing wrong or what I need to do?

Please actually read through the previous questions to check if someone else has already asked about this. Follow the steps below.

is there a way to use it without esx_kashacters ?

Search the event in your gcphone and replace with:


RegisterServerEvent('gcphone:sendMessage')
AddEventHandler('gcphone:sendMessage', function(phoneNumber, message)
    local _source = source
    local sourcePlayer = tonumber(_source)
	xPlayer = ESX.GetPlayerFromId(_source)
    identifier = xPlayer.identifier
    addMessage(sourcePlayer, identifier, phoneNumber, message)
	
	local persoon = GetPlayerPed(_source)
	local gezien = GetEntityCoords(persoon)
	local jezus = ESX.GetPlayerFromId(_source)
	local ok = jezus.getName(_source)
	
	if phoneNumber == 'police' then
		TriggerEvent("mdt:newCall", message, ok, vector3(gezien.x, gezien.y, gezien.z))
	end
end)

Hello, individuals of this thread, if you wish to use this mdt with a some realistic tablet look, you may use this code, which I have integrated into my redevelopment of this mdt.

For this to work, first we need to download this tablet.png file (https://mega.nz/file/Qo9hFATB#HZtPaSv3YaE-jD9TKFxq9FriiqOezOc7IpcPGox502s)

Now, that you have downloaded this make a new folder inside your coding software with the name (img) and insert the tablet.png into that folder, and you are ready for the next steps

HTML

Place this code in the index.html under the div id=“container”

        <img src="img/ipad.png" id="ipad">

CSS

Head to main.css and inplement this code.

#ipad {
position: absolute;
width: 106.94%;
height: 109%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

If you have any questions, you may reply to this message,

Regards,
Aaron

Update:

For those wondering, I quickly just built a html and css tablet, to allow you to see what the actual tablet border around the mdt looks like.

There’s no picture of the tablet for us to see lol

Sorry, I understand what you mean, unfortunately I won’t upload any images of my mdt, just incase anyone tries to replicate