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

Really fantastic release. Thank you for making this available.

Can you show me what the issues is? So the code you have used etc.

Would anyone have an idea of how to add esx_outlawalert to the call list on the mdt?

So where in the code would I go about changing the script to work with another character selection method?

Hello.
Is possible to remove the expire function? If so, could give any advice how? Thank you. By the way, you did very good job :+1: :heart_decoration:

At first it was loading normally, i tried modifying the language on the html, restarted the script and now when i search someone on the search persons i get stuck on loading, everything seems normal besides that

Things i tried
Reinstalling the script (Still same error)
Replacing the sv_mdt.lua with the one you provided and the sql too
Deleating Cache (Both, server and client ones)
Reinstalling SQL

Error on console found

SCRIPT ERROR: @mdt/sv_mdt.lua:618: attempt to index a nil value (field '?')
> ref (@mdt/sv_mdt.lua:618)
> async void MySQLAsync.Operation<System.Collections.Generic.List<System.Collections.Generic.Dictionary<string, object>>>+<ExecuteAsync>d__7.MoveNext() (@mysql-async/MySQLAsync.net.dll:0)
> async Task<List<Dictionary<string, object>>> MySQLAsync.FetchAll.ReaderAsync(MySqlCommand command) (@mysql-async/MySQLAsync.net.dll:0)
> async Task<DbDataReader> MySqlConnector.Core.TextCommandExecutor.ExecuteReaderAsync(string commandText, MySqlParameterCollection parameterCollection, CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) (@mysql-async/MySqlConnector.dll:0)
> async Task<MySqlDataReader> MySql.Data.MySqlClient.MySqlDataReader.CreateAsync(MySqlCommand command, CommandBehavior behavior, IOBehavior ioBehavior) (@mysql-async/MySqlConnector.dll:0)
> async Task MySql.Data.MySqlClient.MySqlDataReader.ReadFirstResultSetAsync(IOBehavior ioBehavior) (@mysql-async/MySqlConnector.dll:0)
> async Task<ResultSet> MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) (@mysql-async/MySqlConnector.dll:0)

ERROR FIXED some esx_licenses stuff:P

And my comments were deleted why? Hmmmm

Hi, many people are unaware the issue with this is not due to html, css or js, this is all down to your client.lua, so by memory this mdt grabs data by es_characters or something but depends how you grab your server identifications you will need to replace it with something for example like ‘users’ from es_character

Actually nop, the issue i had was related to licenses not that, i just fixed it, i dont use kashacters or characters version of identity, and everything works normal.

License: DMV dosen’t seems to work.

I cant search through my users tables (used the lua files provided if you dont have a characters table). So i cant find anyone in the db. I also cant create any reports and finally I cant logout. When I press the logout button nothing happen forcing me to quit the server to get rid of it. Im kinda at a loss here, I dont have any errors. From my eye everything was proper. I looked through the lua files and couldnt find any closeMDT function that corresponded with the index logout button. Im confused
any help is appreciated. thanks

The resource should be named mdt, otherwise NUI callbacks won’t trigger. I believe that’s your issue.

1 Like

I’m not into nui’s but this is a great work even if it was made some years ago, Nice script!, and Congrats :heart:

1 Like

welp like usual its something simple isnt it lol. Looks and works great! A+++ resource

1 Like

Would it be possible to allow players to use voip while they have the mdt up

1 Like

Not unless you use teamspeak voip

That’s completely not true. Something like this works perfectly for NUI focus with input. I use Mumble for my server and this is how I work around keeping input using voice chat.
image

3 Likes

Hey, When i try to submit a warrant it doesn’t give me the option to put the warrant out for the person.
Would someone be able to help. i get no errors in f8 or console.

Oh snap, works almost flawlessly. Only problem is if people press their hotkey it will close the mdt.

Please follow all the installation steps carefully.

how would I add charges?