#CroSs Posted December 8, 2015 Share Posted December 8, 2015 أعتقد أن القريد ليست مافيه كولمنات بالأساس Link to comment
xBeSoOo Posted December 8, 2015 Author Share Posted December 8, 2015 ذا الكلينت GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(0.26, 0.09, 0.47, 0.83, "Pilot Job Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(0.02, 0.06, 0.95, 0.62, "", true, GUIEditor.window[1]) gridlist22 = guiCreateGridList(0.02, 0.70, 0.95, 0.18, true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.03, 0.91, 0.39, 0.07, "Choose", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(0.59, 0.91, 0.39, 0.07, "Exit", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") addEventHandler( "onClientResourceStart", getRootElement( ), function () guiSetVisible ( GUIEditor.window[1], false) end ) createBlip (1958.10144,-2181.56982,13.54688,56) TJPM = createMarker ( 1958.10144,-2181.56982,11.54688,"cylinder",2,255,255,0,255) TJPP = createPed ( 61,1955.10144,-2181.56982,13.54688) setElementRotation ( TJPP,0,0,270) setPedFrozen ( TJPP, true ) addEventHandler ( "onClientPedDamage", getRootElement(), function () if source == TJPP then cancelEvent () end end ) addEventHandler ( "onClientMarkerHit", getRootElement(), function (hit) if source == TJPM then if getElementType (hit) == "player" then guiSetVisible (GUIEditor.window[1],true) showCursor (true) end end end ) addEventHandler ( "onClientGUIClick",GUIEditor.button[2], function () guiSetVisible (GUIEditor.window[1],false) showCursor (false) end ) Skins = { [ 1 ] = { "Pilot", 61 }, } for k,v in ipairs ( Skins ) do local b123 = guiGridListAddRow ( gridlist22 ) guiGridListSetItemText( gridlist22, b123, 1, v[1],false,false) guiGridListSetItemData( gridlist22, b123, 1, v[2]) end Link to comment
Rockyz Posted December 8, 2015 Share Posted December 8, 2015 Skins = { { "Pilot", 61 }, } GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(0.26, 0.09, 0.47, 0.83, "Pilot Job Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(0.02, 0.06, 0.95, 0.62, "", true, GUIEditor.window[1]) gridlist22 = guiCreateGridList(0.02, 0.70, 0.95, 0.18, true, GUIEditor.window[1]) guiGridListAddColumn ( gridlist22, "Skin Name", 0.5 ) GUIEditor.button[1] = guiCreateButton(0.03, 0.91, 0.39, 0.07, "Choose", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(0.59, 0.91, 0.39, 0.07, "Exit", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") guiSetVisible ( GUIEditor.window[1], false ) addRows ( ) end ) createBlip (1958.10144,-2181.56982,13.54688,56) TJPM = createMarker ( 1958.10144,-2181.56982,11.54688,"cylinder",2,255,255,0,255) TJPP = createPed ( 61,1955.10144,-2181.56982,13.54688) setElementRotation ( TJPP,0,0,270) setPedFrozen ( TJPP, true ) addEventHandler ( "onClientPedDamage", getRootElement(), function () if source == TJPP then cancelEvent () end end ) addEventHandler ( "onClientMarkerHit", getRootElement(), function (hit) if source == TJPM then if getElementType (hit) == "player" then guiSetVisible (GUIEditor.window[1],true) showCursor (true) end end end ) addEventHandler ( "onClientGUIClick",GUIEditor.button[2], function () guiSetVisible (GUIEditor.window[1],false) showCursor (false) end ) function addRows ( ) for k,v in ipairs ( Skins ) do local b123 = guiGridListAddRow ( gridlist22 ) guiGridListSetItemText( gridlist22, b123, 1, v[1], false, false ) guiGridListSetItemData( gridlist22, b123, 1, tonumber ( v[2] ) ) end end Link to comment
#CroSs Posted December 8, 2015 Share Posted December 8, 2015 ذا الكلينت GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(0.26, 0.09, 0.47, 0.83, "Pilot Job Panel", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(0.02, 0.06, 0.95, 0.62, "", true, GUIEditor.window[1]) gridlist22 = guiCreateGridList(0.02, 0.70, 0.95, 0.18, true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.03, 0.91, 0.39, 0.07, "Choose", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FF00") GUIEditor.button[2] = guiCreateButton(0.59, 0.91, 0.39, 0.07, "Exit", true, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF0000") addEventHandler( "onClientResourceStart", getRootElement( ), function () guiSetVisible ( GUIEditor.window[1], false) end ) createBlip (1958.10144,-2181.56982,13.54688,56) TJPM = createMarker ( 1958.10144,-2181.56982,11.54688,"cylinder",2,255,255,0,255) TJPP = createPed ( 61,1955.10144,-2181.56982,13.54688) setElementRotation ( TJPP,0,0,270) setPedFrozen ( TJPP, true ) addEventHandler ( "onClientPedDamage", getRootElement(), function () if source == TJPP then cancelEvent () end end ) addEventHandler ( "onClientMarkerHit", getRootElement(), function (hit) if source == TJPM then if getElementType (hit) == "player" then guiSetVisible (GUIEditor.window[1],true) showCursor (true) end end end ) addEventHandler ( "onClientGUIClick",GUIEditor.button[2], function () guiSetVisible (GUIEditor.window[1],false) showCursor (false) end ) Skins = { [ 1 ] = { "Pilot", 61 }, } for k,v in ipairs ( Skins ) do local b123 = guiGridListAddRow ( gridlist22 ) guiGridListSetItemText( gridlist22, b123, 1, v[1],false,false) guiGridListSetItemData( gridlist22, b123, 1, v[2]) end هذا إلي قلته أنا ، القريد ليست مافيه كولمنات Link to comment
iPrestege Posted December 8, 2015 Share Posted December 8, 2015 ^ +1 لو انت عارف الارقمنت حق الوظائف لو كـ اقل تقدير تفتح وتتاكد اذا طلع لك خطأ وتشيك عندك يطلع نفسة وتصلح خطأك وتكون تعلمت وماراح تنساه ثانية Link to comment
xBeSoOo Posted December 8, 2015 Author Share Posted December 8, 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