Skip to content

qalle-git/esx_criminalrecords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esx_criminalrecords

Credits to jsfour, helped me alot.

[REQUIREMENTS]

[INSTALLATION]

  1. CD in your resources/[esx] folder

  2. Import qalle_brottsregister.sql in your database

  3. Add this in your server.cfg : start esx_criminalrecords

  4. Add this into the esx_policejob menu :

              {label = 'Criminalrecord',      value = 'criminalrecords'},
	elseif action == 'criminalrecords' then
		TriggerEvent('esx_criminalrecords:open')

then remove this from client.lua in esx_criminalrecords

Citizen.CreateThread(function()
  	while true do 
  		Citizen.Wait(0)
    	if IsControlJustReleased(0, Keys['F5']) then
      		local closestPlayer, distance = ESX.Game.GetClosestPlayer()
  			if distance ~= -1 and distance <= 3 then
  				if PlayerData.job.name == 'police' then
    				OpenCriminalRecords(closestPlayer)
    			end
  			else
     			ESX.ShowNotification('No players nearby')
  			end
    	end
  	end
end)

About

Criminalrecords for policemen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages