[PAID - RELEASE] Citizen Identification Cards

Citizen Identification Card System
[Paid Resource]
A Real-Time Citizen Identification Card System

Code is accessible Yes
Subscription-based No
Lines (approximately) 790
Requirements None
Support Yes

I saw other ID Cards being released and decided to release the one I have written for the server I work on. This script is influenced from [Release] jsfour-idcard [ESX]. I created the images from scratch using actual California Identification Cards. This has been written to be used on Stand Alone platforms currently, but I also coded ESX, and QBCore to be used instead with ease.

Installation

  1. Purchase the resource from our Tebex Store
  2. Check your email for the resource
  3. Place the resource files in your server’s resources folder!
  4. Place ‘ensure OSheaIDCard’ in server.cfg

The Code is heavily commented to assist developers in understanding how I created this.
There is a very detailed README included on how to use the ESX or QBCore version instead. They are all coded into this one version!

Script Features

  • Custom Made Cards from Real California ID’s
  • ID Card will show to a Nearby player, or yourself if no one is close enough.
  • Distance works with Officer standing at Car door and players in vehicle.(Goes to Officer from Driver)
  • ID Cards will appear correctly on any size resolution (4K Compatible)
  • All Card Information Is Customizable (First Name, Last Name, Date of Birth, Sex, Height)
  • If using ESX, or QBCore will pull information from Database.
  • Can Choose Between 3 Different Identification Cards (ID, Driver License, Weapon License)
  • Uses In Game Mugshot To Provide Character Image Real Time
  • Can be used Standalone, ESX, or QBCore! All code included in this version!
  • Cards can be edited and reuploaded for a custom experience or create your own card
  • Script is NOT encoded or encrypted in any way so your devs can customize and edit.

How To Use Script

  • You Can Setup Buttons to Call the script directly instead of using the /commands.
  • /setid FirstName LastName D/O/B Sex(M/F) Height (Will save these Settings until you reuse this command or log-out) Standalone only.
  • /showid (Will show ID to nearest Player, If no one is close will show it to you.)
  • /showlic (Will show License to nearest Player, If no one is close will show it to you.)
  • /showwep (Will show Weapon License to nearest Player, If no one is close will show it to you.)

Screenshots



15 Likes

This is actually very nice! Great work on this chief! Keep the great work up!

3 Likes

While this script seems cool, you are basically selling someone else’s code, with a rework? Don’t really know if that should be allowed… especially without his written consent

1 Like

As I said I reworked it but its not a copy of his code by any means. I used his code as a reference guide. His Client.lua is 25 lines mine is 174. His server.lua is 45lines. Mine is 68. etc…

good scripting

1 Like

Does this work without Onesync?

To my knowledge, yes. OneSync just allows you to increase your max player capacity. So I would say it is useable without onesync.

We have some scripts that cause problems when OneSync is enabled, like Cuffs, Drag or Radio (because the player position data is different). That’s why I’m asking.

Our Development Server has OneSync disabled, and it works fine on that server. So I assume it will not give you any problems.

Is it possible to get the ID cards with San Andreas on them instead of California? Our server uses Missouri for our Penal Code and such so having Californian IDs doesn’t really fit.

non of it seems to be working for me and im getting a js error for the lowercase

I sent you a message, I can help walk you through the error. Make sure you are using /setid before you use /showid, otherwise it will not open.

Yes, I will work on that today and push a new update. I will let you know when it is finished. It will have alternate image files in case you do not want to use California.

How do you make it go away when you are done looking at someones license? NVM, we figured out backspace will clear it.

A couple other questions. Can we have it prompt when you do /setid so it has the suggestion of what to put and also, when completing the command to set, can it display a confirmation of what you just set in chat for the person who set it to see.

Yes, I will edit those options both in tomorrow. I will have them and the renewed images at that time. I will message you when the file has been updated. Thank you for you suggestions!

To help some, here is what I just added to my copy to show what they need to enter.

TriggerEvent( “chat:addSuggestion”, “/setid”, “FirstName LastName DOB M/F Height – John Doe 01/20/1984 M 6-2” )

I added that right below your TriggerEvent for the RegisterCommand(‘setid’,

I have no idea how to do the part about showing confirmation though.

I have added them both already. I will push the update tomorrow once I finalize the new images. If you want to add it in to use before tomorrow the code is

SetNotificationTextEntry(‘STRING’)
AddTextComponentString(“~p~ID Set ~r~First Name: ~p~”…fname…“~r~ | Last Name: ~p~” …lname… “~r~ | D.O.B: ~p~” …dateofbirth… “~r~ | Sex: ~p~” …sex… “~r~ | Height: ~p~” …height)
DrawNotification(false, false)

Add this code to line 52-54 in client.

Thanks!!!

Looks nice!

If I can ask, are you using the DrawSprite() function to get the player peds face image?

Yes, I am using DrawSprite()