Esx - check licence, unpaid fines

Hello,

I wanna ask if can somebody do this for me.

It will be very helpfull for me.

1 Like

Apperantly its ESX-SNIPPET but I dont know how to install it

Hmmmm i wanna add this in policejob

Allright i added it to police job but i have one problem. When i delete weapon pass to somebody, he must reconnect if he wants buy another licence… Database just dont refresh i think and idk hoe to fix it… Code here https://github.com/ESX-PUBLIC/ESX-Snippet/tree/master/police

1 Like

How did you install snippet? When I try to connect to my server it says “Couldnt load resource ESX-SNIPPET”

ESX-SNIPPET its only codes for esx addons… Install = add codes into scripts

I just wish they would have given at least what files to edit for a lot of the snippets. The police one was easy, I need a couple of the gameplay ones.

Can you help me with Checklicense and Deletelicense?

I can, but im at school right now xD , ill come home at night and i can poste code here or something like tutorial

Great, I’ll wait.

Allright im back…

So basically you will open this links:
https://github.com/ESX-PUBLIC/ESX-Snippet/blob/master/police/CheckLicense.lua
https://github.com/ESX-PUBLIC/ESX-Snippet/blob/master/police/Deleteicense.lua

You can see there is description in the code…

In checklicence.lua
–[[server/main.lua]]–
all the code you will add in server/main.lua in your policejob, but wait!! not all the code… there is two parts…
now client/main.lua code…

Again you see something new:

–[[client/main.lua]]
[…]

  {label = 'Voir les permis',            value = 'license_see'}, ---- you must add it into menu whatever you want

[…]

then this —
if data2.current.value == ‘license_see’ then
TriggerServerEvent(‘esx_policejob:license_see’, GetPlayerServerId(player))
end

this is fuction for the menu…

Now deletelicence, basically its same as a checklicence (sorry for my english xD)
You must check the code and again in the code they saying this:

–[[client/main.lua]]–

[…]

So just add it into your policejob script…

Awww its so hard explain something with bad english xD…


If you dont know what im saying in this “shit tutorial”
you can download my edited policejob with working checklicence/deletelicence/jailaddon… but i will post only client.lua + server.lua just check the code how i did it and place it into your code… Just try and try :D…
Download Deleted.

1 Like

Thanks man, I’m going to test now

policejob.rar is dont working and I dont know how how I can put to check deriver`s license and arm license can you help me??

What? Rar doesnt working?

worked for me so nothing wrong with it

sheen i need your help there are no translate for it can you send your? :slight_smile:

Sorry no support. This script what i post it was only for Opiez.

But can You make a script for all of us?

I havent permission for it.

And what I need to do? Because I dont know how to put in police menu to check drivers license.