-
Posts
1,388 -
Joined
-
Last visited
-
Days Won
14
Everything posted by +Source|>
-
GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83) GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D") GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77") local x, y, z = -- احداثيات الماركر local x2, y2, z2 = -- احداثيات الماركر local x3, y3, z3 = -- احداثيات الماركر marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 ) marker = createMarker ( x2, y2, z2 -1 , "cylinder", 1.5, 155, 0, 0 ) marker = createMarker ( x3, y3, z3 -1 , "cylinder", 1.5, 155, 0, 0 ) wndroot = getResourceRootElement() addEventHandler("onClientMarkerHit", marker, function(plr) if plr == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end ) addEventHandler("onClientGUIClick", wndroot, function() if ( source == GUIEditor.button[2] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) end end )
-
الطلب الأول على حسب المود هذا الكود مع الكيل مسج حق السيرفر الاساسي exports.killmessages:outputmessage
-
GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83) GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D") GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77") local x, y, z = -- احداثيات ماركرك marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 ) wndroot = getResourceRootElement() addEventHandler("onClientMarkerHit", marker, function(plr) if plr == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end ) addEventHandler("onClientGUIClick", wndroot, function() if ( source == GUIEditor.button[2] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) end end )
-
شوف يالطيب mma7 = getResourceRootElemen()
-
mtxt انا معرف بها الايديت بوكس ما يطلع شيئ
-
لما احدد اللاعب واوزع ما يوزع ملف سيرفر addEvent("moneyforp", true) addEventHandler("moneyforp", root, function(mtxt, player) local player = getPlayerFromName(player) if ( player ) then givePlayerMoney( player, mtxt ) end end ) ملف كلنت addEventHandler("onClientGUIClick", mma7, function() local slctd = guiGridListGetSelectedItem( grid ) local txt = guiGridListGetItemText( grid, slctd, 1 ) local mtxt = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[2] ) then if ( slctd ~= -1 ) then if mtxt == "" then outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء كتابة مبلغ للتوزيع ", 255, 0, 0, true ) return end triggerServerEvent( "moneyforp",localPlayer, txt, mtxt ) else outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء إخـتيار لاعـب ", 255, 0, 0, true ) end end end )
-
المشكله مب بالفلوس المشكله بال giveWeapon id ammo
-
ما اشتغل الكود ملف سيرفر addEvent("weapon", true) addEventHandler("weapon", root, function( action, ID, ammo ) if ( action == "wpp" ) then giveWeapon( source, ID, ammo, true ) end end ) ملف كلنت local wep = { -- { Weapon / ID / Ammo / Money } -- {"M4", "31", "1000", "9000"}, {"Minigun", "38", "1000", "9000"}, } function refreesh () guiGridListClear( wpgrd ) for i, v in ipairs ( wep ) do local rowwp = guiGridListAddRow( wpgrd ) guiGridListSetItemText( wpgrd, rowwp, 1, tostring( v[1] ), false, false ) guiGridListSetItemData( wpgrd, rowwp, 1,{ ID = v[2] , ammo = v[3] , money = v[4] } ) end end bindKey( "f7", "down", function() if guiGetVisible( GUIEditor.window[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor(false) else guiSetVisible( GUIEditor.window[1], true ) showCursor(true) refreesh () end end ) addEventHandler("onClientGUIClick", wshroot, function() local ss = guiGridListGetSelectedItem( wpgrd ) local tt = guiGridListGetItemText( wpgrd, ss, 1 ) if ( source == GUIEditor.button[1] ) then if ( ss ~= -1 ) then triggerServerEvent ( "weapon" , localPlayer , "wpp" ) end end end )
-
--Client Side addEventHandler("onClientResourceStart", root, function() setTimer( function() setPlayerHudComponentVisible("money", true) end, 1000, 0 ) end )
-
If addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then executeCommandHandler("report") end end ) اعتقد صحيح ولو تبي حق اخفاء شات addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[2] then if ( isChatVisible () == true ) then showChat(false) else showChat(true) end end end ) اعتقد الاكواد صحيحه
-
شكرا لكم بس شي اخر لاهنتم مسوي زر ابيه يخفي الهود Hud
-
addEvent("ree", true) addEventHandler("ree", root, function() redirectPlayer( source, 46.105.250.205:25011 ) end ) مشتغل
-
شكرا طيب وهذا وش مشكلته addEventHandler("onClientGUIClick", settingroot, function() if source == GUIEditor.button[1] then executeCommandHandler("reconnect") end end )
-
أعتقد هذذا صحيح |M.r|LooFe| -- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == bazzoka ) then triggerServerEvent ( "giveBazzoka", localPlayer ) end end ) -- Server addEvent ( "giveBazzoka", true ) addEventHandler ( "giveBazzoka", root, function ( ) giveWeapon ( root, 35, 99999, true ) outputChatBox ( "#FFE933[GiveWeapon System]: لقد قام اللاعب ( " .. getPlayerName ( source ) .. " ) بتزويع سلاح بازوكا", root, 0, 0, 0, true ) end)
-
addEventHandler("onClientGUIClick", settingroot, function() if source == GUIEditor.button[2] then if isChatVisible() then showchat(false) else showchat(true) end end end )