[Release] jsfour-criminalrecord [ESX]

Why i cant exit criminal record?

Dont rename the script you need to start jsfour-criminalrecord! :slight_smile:

and how would I be able to change the DOB that it wouldn’t require year-mnth-day,want to change it but doesn’t allow me,tried in index file,doesnt seem have any effect

<p>DOB</p>
                <p class="square r-dob-year"><i>Y</i>00</p>
                <p class="square r-dob-month"><i>M</i>00</p>
                <p class="square r-dob-day"><i>D</i>00</p>
                <p class="square r-dob-lastdigits"><i>X</i></p>

This as far as I understand,is not related to adding,just when searching

i did this and it fixed mine ,
first go to server.lua then go to line 158 remove it and paste the following :

Summary

MySQL.Async.fetchAll(‘SELECT identifier, skin, sex, height FROM users WHERE UPPER(firstname) = @firstname AND UPPER(lastname) = @lastname AND dateofbirth = @dateofbirth’, {[’@firstname’] = data.firstname, [’@lastname’] = data.lastname, [’@dateofbirth’] = data.dob},

the original line tries to call for the value “dob” where it is actually "dateofbirth " in DB , and i think that was the issue

Love the script, makes a great MDT system. I also added a command to where police while out on patrol can do a /command and access it. I’m currently adding a ticket page into it to where it syncs with the fines for the police job.

hello!!! i get this eeror if anyone canhelp…

Will you share it when you finish it ?

Most likely!

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:

3 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