abofhd Posted August 15, 2015 Posted August 15, 2015 السلا م عليكم كيفكم اخواني انا ابي كود حق لمن تضغط على اسم الاعب في القريد ليست يطلع السريال حقه في الفراغ وشكرا...
Naif Posted August 15, 2015 Posted August 15, 2015 -- Client addEventHandler('onClientGUIClick',root, function ( ) if ( source == GridList ) then if ( guiGridListGetSelectedItem ( GridList ) ~= -1 ) then triggerServerEvent('getSerialFromName',localPlayer,guiGridListGetItemText(GridList,guiGridListGetSelectedItem ( GridList ),1)) else guiSetText(coby12,'') end end end ) addEvent('Get',true) addEventHandler('Get',root, function ( serial ) guiSetText(coby12,tostring(serial)) end) -- Server addEvent('getSerialFromName',true) addEventHandler('getSerialFromName',root, function ( name ) if ( getPlayerFromName(name) ) then triggerClientEvent(source,'Get',source,getPlayerSerial(getPlayerFromName(name))) end end )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now