1REDBULL Posted April 10, 2014 Posted April 10, 2014 السلام عليكم GUIEditor.button[1] انا ابي اذا ظغط الزر يتغير السكن حقه انا حاولت بس ما نجح حاولت بالكلينت و بالسيرفر ابيكم تعطوني الكود الصحيح لأني شاك ان الكود خطء لا اهنتم
EH10 Posted April 10, 2014 Posted April 10, 2014 (edited) addEventHandler('onClientGUIClick', root, function () if ( source == Button ) then setElementModel(localPlayer, 46) end end ) Edited April 10, 2014 by Guest
shwaeki Posted April 10, 2014 Posted April 10, 2014 كلنت هو بس بشوف الشخصية و الباقي بشوفها الشخصية القديمة
!#NssoR_) Posted April 10, 2014 Posted April 10, 2014 addEventHandler('onClientGUIClick', root, function () if ( source == Button ) then setElementModel(source, 46) end end ) source > localPlayer
EH10 Posted April 10, 2014 Posted April 10, 2014 addEventHandler('onClientGUIClick', root, function () if ( source == Button ) then setElementModel(source, 46) end end ) source > localPlayer Thanx > 3
abu5lf Posted April 11, 2014 Posted April 11, 2014 انت تغير الشخصية في الكلنت مايشوفها الا الاعب نفسه لازم تسوي ترقير من كلنت الى السيرفر وتغيرها هناك
</Mr.Tn6eL> Posted April 11, 2014 Posted April 11, 2014 Client addEventHandler('onClientGUIClick', root, function () if ( source == Button ) then triggerServerEvent("setSkin",localPlayer,skin) end end ) skin = رقم الشخصية Server addEvent( "setSkin", true ) addEventHandler( "setSkin", root, function (id) if tonumber(id) then setElementModel(source,id) 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