Problem Resolved... :)

Can you send me the script for I work on it ?

Nop :confused: i dont send my menu
 Question de principe je veux pas qu’il se partage partout avant la release


Yeah can you send your code on pastbine ‘lua’ because we can’t see your script what do you do like we see just the menu

I understand my friend ;). I guess we need to talk on discord or teamspeak for understand what do you try to do.

Its not because the script of your ID card needs to be linked to your DB?

What’s age? You’re not actually setting it anywehere in the code you’ve sent.

Hello, you use the file civilmenu.lua from FailyV as a base.
Since then, for a moment I am turning to the forum, sharing is not an easy thing here.

Message Removed dude ! thx the fucking community for no respect for my work :slight_smile:

try

age = tonumber.result[1].age

Did you add the function server.lua for execute ?

Message Removed dude ! thx the fucking community for no respect for my work :slight_smile:

Think that your script have to be in an other part :

RegisterNetEvent('Somethingyouhavetofill')
AddEventHandler(SomethingYouhavetofill', function(result)
	    
print("coucou2")

age = result[1].age

COND1 = not COND1
	
end)


function SomethingYouhavetofill()

		local id = GetPlayerServerId()
		local player = GetPlayerFromServerId(id)
		local name = GetPlayerName(player)


DrawRect(0.91,0.40,0.175,0.50,0,0,0,150)
 
        SetTextFont( 4 )
        SetTextScale( 1.0, 1.0 )
        SetTextColour( 255, 255, 255, 255 )
        SetTextOutline()
        SetTextEntry( "STRING" )
        AddTextComponentString( "Carte d'identité" )
        DrawText( 0.85, 0.5)
       
        SetTextFont( 0 )
        SetTextScale( 0.35, 0.35 )
        SetTextColour( 255, 255, 255, 255 )
        SetTextOutline()
        SetTextEntry( "STRING" )
        AddTextComponentString( "Age : " .. age)
        DrawText( 0.825, 0.25 )

	end

Wait
 what is Cond1 and with ur code when i click on the button the menu does not appears
 its not logic

Do you fill this line with your scripts/function name ?

RegisterNetEvent(‘Somethingyouhavetofill’)
AddEventHandler(SomethingYouhavetofill’, function(result)

and

function SomethingYouhavetofill()

?

Hello Friend !
I’m not my home actually but I script that to you try it :blush: