7REF_MTA Posted March 12, 2016 Share Posted March 12, 2016 بدي اول ماضغط علي زر يحط شخصية 124 مثلا شوفو انا حاولت بذا الكود --client addCommandHandler("onClientGUIClick",resourceRoot, function 124 ( commandName ) if source == GUIEditor.button[3] then end addCommandHandler ( "skin", 124 ) end ) Link to comment
</Mr.Tn6eL> Posted March 12, 2016 Share Posted March 12, 2016 client addEventHandler("onClientGUIClick", resourceRoot, function( ) if source == GUIEditor.button[3] then triggerServerEvent("changePlayerSkin", localPlayer, 124) end end) server addEvent("changePlayerSkin", true) addEventHandler("changePlayerSkin", root, function(id) setElementModel(source, id) 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