S4MuEL Posted June 1, 2013 Share Posted June 1, 2013 مثلآ عندكـ بآلقرد ليست Cj Skin لمآ يظغطط ع زر , يعطيهـ شخصيةة سي جي ؟ ! Link to comment
#Al-Ha[J]aRii Posted June 1, 2013 Share Posted June 1, 2013 ابيه يختار شخصية ؟ من القريد لست ؟ لين ضغط على زر او ختار من القريد لست يعطيه شخصية "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem setElementModel Link to comment
jafar Posted June 1, 2013 Share Posted June 1, 2013 ابيه يختار شخصية ؟ من القريد لست ؟ لين ضغط على زر او ختار من القريد لست يعطيه شخصية "onClientGUIClick" guiGridListGetItemText guiGridListGetSelectedItem setElementModel + triggerServerEvent addEvent addEventHandler Link to comment
AHMAD1234 Posted June 1, 2013 Share Posted June 1, 2013 https://community.multitheftauto.com/index.php?p=resources&s=details&id=7184 حمل نسخة 3.0.0 او خذ ذا الكود client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(312,152,165,339,"skins",false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,19,147,274,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"skin ID",60) GUIEditor_Button[1] = guiCreateButton(9,296,69,34,"ok",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(86,296,70,34,"close",false,GUIEditor_Window[1]) local skins = {{0},{1},{2},{7},{8},{9},{10},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23},{24},{25},{26},{27},{28},{29},{30},{31},{32},{33},{34}} for i,v in ipairs (skins) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, 1, v[1], false, true) end function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[1]) then if (guiGridListGetSelectedItem (GUIEditor_Grid[1])) then local skin = guiGridListGetItemText (GUIEditor_Grid[1], guiGridListGetSelectedItem (GUIEditor_Grid[1]), 1) triggerServerEvent ("skins", getLocalPlayer(), skin) end end end addEventHandler ("onClientGUIClick", GUIEditor_Button[1], onClientClick) function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor_Button[2]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor_Button[2], onClientClick) function window() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end bindKey("F4","down",window) server side addEvent ("skins", true) addEventHandler ("skins", getRootElement(), function(skin) setElementModel(source, skin) end ) تقدر تغير في الاشكال من local skins = {{0},{1},{2},{7},{8},{9},{10},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23},{24},{25},{26},{27},{28},{29},{30},{31},{32},{33},{34}} Link to comment
iPrestege Posted June 1, 2013 Share Posted June 1, 2013 -- # Client Side : aSkinsIDsNames = { [ 46 ] = "Ksa Saudi Skin", } function getSkinNameFromModel ( ID ) return aSkinsIDsNames [ ID ] end local MySkinIDs = { 46 } for k,v in next,MySkinIDs do guiGridListSetItemText( GridList,guiGridListAddRow ( GridList ),Column,getSkinNameFromModel(v),false,false ) end صعبة؟ Link to comment
yazan Posted June 2, 2013 Share Posted June 2, 2013 برستيج شلون اختيار ملابس كلنت كذا تضهر له هوا بس صح ؟ Link to comment
K1NG Posted June 2, 2013 Share Posted June 2, 2013 aSkinsIDsNames = { [ 46 ] = "Ksa Saudi Skin", } function getSkinNameFromModel ( ID ) return aSkinsIDsNames [ ID ] end تقدر تستخدم وظيفة سويتها لك تساعدكـ للآنة مافية فنكشن يسوي مثل السلاح و السيارهـ ## يُفضل إنكـ تذكر حقوق غيركـ لما تطرح أكواد .. https://forum.multitheftauto.com/viewtopic.php?f=91&t=56045#p542183 No, there isn't, you can create a table like this one: skinNames = { [ 299 ] = "Claude", [ 0 ] = "CJ" } function getSkinNameFromID ( skinID ) return skinNames [ skinID ] 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