The moVer Posted April 16, 2015 Share Posted April 16, 2015 السلام عليكم اما بعد ابي درس بالبرمجة بسيط كيف استخدم color pic يعني ابي لوحة مثلا اختار لون السيارة منها Link to comment
</Mr.Tn6eL> Posted April 16, 2015 Share Posted April 16, 2015 قصدك color picker ? اذ هو استعمل حمل المود وشغله https://community.multitheftauto.com/in ... ls&id=3247 مثال للفتح exports.cpicker:openPicker(localPlayer, "#ff0000", "vehicle color") للاغلاق exports.cpicker:closePicker(localPlayer) الافنت onColorPickerOK يشتغل الحدث اذا ضغط ok addEventHandler("onColorPickerOK", root, function(_, hex, r, g, b) outputChatBox("Your Color Is : "..string.format("hex:%s RGB:%d,%d,%d", hex, r, g, b)) end) الافنت onColorPickerChange يشتغل الحدث اذا الاعب يختار لون addEventHandler("onColorPickerChange", root, function(vehicle, _, r, g, b) setVehicleColor(vehicle, r, g, b) end) Link to comment
The moVer Posted April 16, 2015 Author Share Posted April 16, 2015 شكرا ما قصرت جزاك الله خير Link to comment
TAPL Posted April 17, 2015 Share Posted April 17, 2015 للمرة الثالثة تحط موضوع في القسم الخطأ ينقل إلى قسم البرمجة Link to comment
The moVer Posted April 17, 2015 Author Share Posted April 17, 2015 انا حطيت خط تحت كلمة شرح قلت ابي شرح كل ما احط موضوع ينقل 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