[Release] jsfour-criminalrecord [ESX]

Bro that looks amazing! Id love to test that when it drops!

I see that multiple have added locations. Would someone please describe how?

Those that want the police officers to be able to open it up while out on patrol insert this into the client side of the script and only police will be able to open it using the command you want. I used mdt.

RegisterCommand(‘mdt’,function()
if PlayerData.job and PlayerData.job.name == ‘police’ then
ESX.TriggerServerCallback(‘jsfour-criminalrecord:fetch’, function( d )
SetNuiFocus(true, true)

	SendNUIMessage({
	  action = "open",
		array  = d
	})
	end, data, 'start')
end

end)

Good for RP servers :+1:

it’s almost just, a pity it was at two fingers, go this is my beauty day if i get
20x pretty heart in emicone, i share how to put it in esx_policejob menu.

I am a little fed up that nobody helps beginners, because I am also one.
but I will give you the soluce, provided that 20x pretty heart are respected. :rofl:

7 Likes

did u finish your MDT i would like to use it :smiley:

I’d love to know how to easily implement into ESX_policejob menu! Thank you!

In which part of the css did you change the color of the buttons, I am doing something similar or adapting a different style, I have hours looking for exactly where to change color and I can’t find it

hi bro,


i am making this modification obvious by leaving the letters that say “created by jsfour”

in html with css, but I am trying to locate exactly where to change the color to the buttons. I want to change it from black to a yellow one or a color similar to the edges, I hope you can help me: De4aa88f815f65ac5eaeab7a833dfc

those who want to put jsfour in a menu here is the solution:

  • I do it because I’m fed up that beginners can not learn , with examples how to do, and that it remains 100% secret nobody wants to give solutions.

find in client.lua, line 56-71 : resources[jsfour]\jsfour-criminalrecord

-- Key event
Citizen.CreateThread(function()
	while true do
		Wait(0)
		if IsControlJustReleased(0, 38) and inMarker then
			ESX.TriggerServerCallback('jsfour-criminalrecord:fetch', function( d )
				SetNuiFocus(true, true)

				SendNUIMessage({
				  action = "open",
					array  = d
				})
		  end, data, 'start')
		end
	end
end)

and replace per

-- Key event
RegisterNetEvent('jsfour-criminalrecord:fetch')
AddEventHandler('jsfour-criminalrecord:fetch', function()
			ESX.TriggerServerCallback('jsfour-criminalrecord:fetch', function( d )
				SetNuiFocus(true, true)

				SendNUIMessage({
				  action = "open",
					array  = d
				})
		  end, data, 'start')
end)

in config.lua no forget
to remove the point or create a point under the map like this

Config.Marker = {
	Pos   = {x = 1.0, y = 1.0, z = 1.0},

in menu job as esx_policejob example :

elements = {
			{label = _U('citizen_interaction'), value = 'citizen_interaction'},
			{label = _U('vehicle_interaction'), value = 'vehicle_interaction'},
			{label = _U('Casier_Judiciaire'), value = 'records'},
            {label = _U('object_spawner'), value = 'object_spawner'}


        }}, function(data, menu)       ---------------------(below that add this)
		if data.current.value == 'records' then
            TriggerEvent("jsfour-criminalrecord:fetch")
        end

ty bro, this is my final edition :smiley:

pd: i add tablet animation with prop
thanks to the help of my partner igna

is there a vrp version?

Since Yesterday I can’t move the Mouse :frowning:

Hello. How could i use this owesome script to work with two Jobs Access and two markers on different places ? When i try to add another job. Marker dissapear

Hello, as you will see I made a modification or design to the criminal record, I also made another design for the “ems” paramedics as a medical record. I would like to know if I can obtain permission to publish it, obviously the credits are for the original creator. and the link of the creator and this post will be put.

1 Like

That looks awesome man I’d love to give it a try

say that

It does not work for me :frowning:

the database dont work