z24d Posted August 21, 2015 Share Posted August 21, 2015 السلام عليكم وين المشكلة بالكودين ذي ؟ addEventHandler("onClientGUIClick", getRootElement(), function () if source == Button then Text = guiGetText(memo) triggerClientEvent("onPlayerClickedTheButton" , localPlayer, Text ) end end ) Client ^^ Server . addEvent( "onPlayerClickedTheButton",true ) addEventHandler( "onPlayerClickedTheButton" , getRootElement(), function (Text) outputChatBox ( Text, getRootElement(), 255, 0, 0, true ) end ) Link to comment
iMr.SFA7 Posted August 21, 2015 Share Posted August 21, 2015 المشكلة أنك حاط ترايقر للكلنت بـ ملف الكلنت نفسه -.- Link to comment
z24d Posted August 21, 2015 Author Share Posted August 21, 2015 المشكلة أنك حاط ترايقر للكلنت بـ ملف الكلنت نفسه -.- ههههههههههههههههههه معليش تلخبطت عشان حملت حق المفكره ذا لحس مخي Link to comment
iMr.SFA7 Posted August 21, 2015 Share Posted August 21, 2015 addEventHandler("onClientGUIClick", root, function () if ( source == Button ) then local Text = guiGetText(memo) triggerServerEvent("onPlayerClickedTheButton" , localPlayer, Text ) end end ) addEvent( "onPlayerClickedTheButton",true ) addEventHandler( "onPlayerClickedTheButton" , root, function (Text) outputChatBox ( Text, root, 255, 0, 0, true ) end ) Link to comment
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