Message Removed dude ! thx the fucking community for no respect for my work
triggerserverevent
server does a sql request
triggerclientevent with the answer
Is it really what youâre asking ?
Yep if i click on the button identity card he execute TriggerServerEvent âMyIdentâ and a the end of MyIdent he execute TriggerClientEvent âMyIdentClientâ
so whatâs the question ? sorry itâs not clear
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
AHHHHH ITâS MySQLGetResults ???
Message Removed dude ! thx the fucking community for no respect for my work
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
Ok np dude I waiting
Message Removed dude ! thx the fucking community for no respect for my work
I donât know if you see your MP
I send you the script !
I have modified my code⌠All works but the âMyIdentClientâ does not work anywayâŚ
Yep thx dude ^^
âMyIdentClientâ itâs a native function ?
Ahah you welcome
Message Removed dude ! thx the fucking community for no respect for my work
I saw⌠Try someone information from the script I send you, maybe itâs helpful
@Havoc You have a idea for my problem ??
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
Message Removed dude ! thx the fucking community for no respect for my work
Ok itâs good but the menu âidentity cardâ (myidentclient) is displayed for 1 second and closes immediately after