Problem Resolved... :)


#1

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


#2

triggerserverevent
server does a sql request
triggerclientevent with the answer

Is it really what you’re asking ?


#3

Yep :slight_smile: if i click on the button identity card he execute TriggerServerEvent “MyIdent” and a the end of MyIdent he execute TriggerClientEvent ‘MyIdentClient’


#4

so what’s the question ? sorry it’s not clear


#5

How to get the name of the column (ex: age) and after insert the number in the column age in my menu for my identity card :slight_smile:


#6

AHHHHH IT’S MySQLGetResults ??? :smiley:


#7

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


#8

Hey I’m french too !
I have something maybe will can help you to dev your identity card ! I send you to night after I finish my work :wink:


#9

Ok np dude :stuck_out_tongue: I waiting


#10

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


#11

I don’t know if you see your MP :blush:
I send you the script !


#12

I have modified my code… All works but the ‘MyIdentClient’ does not work anyway…


#13

Yep thx dude ^^ :smiley:


#14

‘MyIdentClient’ it’s a native function ?

Ahah you welcome :wink:


#15

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


#16

I saw… Try someone information from the script I send you, maybe it’s helpful :wink:


#18

@Havoc You have a idea for my problem ??


#19
local result = MySQL:getResults(executed_query, {'age'})

Well, MySQL:getResults() will return an array of results which match your query. So, to get your player’s age you have to do result[1].age. This should give you the data that is saved in the database.

Secondly, TriggerClientEvent needs to have the ID of the player to trigger the event on (see TriggerClientEvent Wiki). You were calling it correctly when you were doing


#21

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


#22

Ok it’s good but the menu “identity card” (myidentclient) is displayed for 1 second and closes immediately after