ProGamerZ Posted February 11, 2018 Share Posted February 11, 2018 السلام عليكم ورحمة الله وبركاته انا كنت اسوي شادر للملابس حقت سي جي بس تقابلني مشكله ما ادري كيف احلها واحترت فيها ومشكلتي هي ان ال leather و denim يجون مضبوطين على اللاعب لكن hoody لا تجي مضبوطه الا لو سويتها وحدها بدون الباقيين حل ؟ Quote -- Client Side addEventHandler("onClientGUIClick", GUIEditor.button[2], function() for i, value in pairs(clothes) do for k, v in pairs(value) do if v.name == "Gamer Shirt" then triggerServerEvent("denimSh", localPlayer) elseif v.name == "Gamer Leather" then triggerServerEvent("leatherSh", localPlayer) end end end end) addEventHandler("onClientGUIClick", GUIEditor.button[2], function() for i, value in pairs(clothes) do for k, v in pairs(value) do if v.name == "Gamer Hoody" then triggerServerEvent("hoodySh", localPlayer) end end end end) Quote -- Server Side function hoody() addPedClothes(source, "hoodyAblack", "hoodyA", 0) end addEvent("hoodySh", true) addEventHandler("hoodySh", root, hoody) function denim() addPedClothes(source, "denimfade", "denim", 0) end addEvent("denimSh", true) addEventHandler("denimSh", root, denim) function leather() addPedClothes(source, "leather", "leather", 0) end addEvent("leatherSh", true) addEventHandler("leatherSh", root, leather) 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