[PAID - RELEASE] Citizen Identification Cards

Script has been updated, new features implemented. Added 3 Images inside image folder. If you remove the number at the end and rename the others it will work with the new images.

2 Likes

ok Boss I got it now. waiting for the email. This is gonna work with Dunkos VRP correct ?

It is setup to use ESX functions if you are going to use the database. If VRP uses ESX functions (i doubt it) it would work as well as it uses mysql async and a users table which has player informations duch as name, dob, height, and sex I dont see why not. But I donā€™t think it would work using the database and vRP. The script will allow you to do the Standalone portion where you set the information manually using vRP.

ok to added into my interaction menu Iā€™ll have to place the folder inside that folder or just put it in the resources folder like a normal resource?

You will need to know some coding to put it into your interaction menu like i have ours setup

can you provide support on this? because is not working for me. with the standard 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

this should be less complicated can you help? is kind of mess up that is easy to pay but not to make it work. not trying to be an a**hole but this will help your future supporter. :grimacing:

What menu are you using that you are trying to integrate this into?

I am helping someone add it to interaction menu as we speak

SEM_InteractionMenu

Ok to include it in that menu do the following:

                local HU = NativeUI.CreateItem('Hands Up', 'Put your hands up')
                local HUK = NativeUI.CreateItem('Hand Up & Kneel', 'Put your hands up and kneel on the ground')
                local Inventory = NativeUI.CreateItem('Inventory', 'Set your inventory')
                local BAC = NativeUI.CreateItem('BAC', 'Set your BAC level')
                local DropWeapon = NativeUI.CreateItem('Drop Weapon', 'Drop your current weapon on the ground')
                local SetID = NativeUI.CreateItem('Set ID Info', 'Set information to be displayed')
                local ShowID = NativeUI.CreateItem('Show ID', 'Show Identification to another player')
                local ShowLicense = NativeUI.CreateItem('Show Driver License', 'Show Driver License to another player')
                local ShowGun = NativeUI.CreateItem('Show Weapon License', 'Show Weapon License to another player')
                CivActions:AddItem(HU)
                CivActions:AddItem(HUK)
                CivActions:AddItem(Inventory)
                CivActions:AddItem(BAC)
                CivActions:AddItem(DropWeapon)
                CivActions:AddItem(SetID)
                CivActions:AddItem(ShowID)
                CivActions:AddItem(ShowLicense)
                CivActions:AddItem(ShowGun)
                SetID.Activated = function(ParentMenu, SelectedItem)
                    local ID = KeyboardInput('FirstName LastName D/O/B Sex(M/F) Height:', 75)
                    if ID == nil or ID == '' then
                        Notify('~r~No ID Provided!')
                        return
                    end
                    split_string = Split(ID, " ")
                    TriggerEvent('OSheaIDCard:RegisterVariables', split_string[1], split_string[2], split_string[3], split_string[4], split_string[5] ) 
                end
                ShowID.Activated = function(ParentMenu, SelectedItem)
                    local player = GetClosestPlayer()
                    if player == null then
                        TriggerEvent('OSheaIDCard:OpenUI',  GetPlayerServerId(PlayerId())) 
                    else
                    TriggerEvent('OSheaIDCard:OpenUI', player) 
                    end       
                end
                ShowLicense.Activated = function(ParentMenu, SelectedItem)
                    local player = GetClosestPlayer()
                    if player == null then
                        TriggerEvent('OSheaIDCard:OpenUI',  GetPlayerServerId(PlayerId()), 'driver') 
                    else
                        TriggerEvent('OSheaIDCard:OpenUI', player, 'driver') 
                    end   
                end
                ShowGun.Activated = function(ParentMenu, SelectedItem)
                    local player = GetClosestPlayer()
                    if player == null then
                        TriggerEvent('OSheaIDCard:OpenUI',  GetPlayerServerId(PlayerId()), 'weapon') 
                    else
                        TriggerEvent('OSheaIDCard:OpenUI', player, 'weapon') 
                    end
                end

In your menu.lua you will erase lines 705 - 714, Those lines should be included in the above code. Put the code above in its spot. After that at the very bottom of menu.lua place this code

function Split(s, delimiter)
    result = {};
    for match in (s..delimiter):gmatch("(.-)"..delimiter) do
        table.insert(result, match);
    end
    return result;
end

both of this go exactly like that line number 705 - 714? in the menu.lua from this sem_interaction folder right ?

Thank you so much for your help and support, it works perfectly! great Resource ! very realistic in my opinion. I will keep my eyes open for more scripts you might have now or in the future. :100: :100: :+1:t6: :card_index: :credit_card: :card_file_box: :fire: :fire: :video_game: :yellow_heart: :blue_heart: :brown_heart:

2 Likes

is there a way to use this without esx or is this only for esx

This is for Both. Setup to work non-esx. Needs a couple commented lines removed to be used for esx. So yes it works for both ESX And non-esx

I bought this and dont have access @simotsu

I just purchased it, and donā€™t have access

did you get this mod yet?

Everyone has access. It takes up to 6hrs to be processed. Usually within the first hour it is finished. Sorry for any inconvenience.

I really like how this works and that it is also Standalone, I had a question however. Would it be possible to change the textures? Our server is more or less based on the state of Maine and having licenseā€™s that match that would be great.