-
Posts
1,304 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Ahmed Ly
-
كلنت function WarpPlayerToserver () if source == Warp then local text2 = guiGetText(GUIEditor.edit[1]) local text1 = guiGetText(GUIEditor.edit[2]) if text2 ~= "" and text1~= "" then local Get = guiGridListGetItemText (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1) local PlayerName = getPlayerFromName(Get) triggerServerEvent("WarpEvent",localPlayer,text2,text1) else outputChatBox("----------",0,255,0) end end end addEventHandler("onClientGUIClick",root,WarpPlayerToserver) ----------------- سيرفر addEvent("WarpEvent",true) addEventHandler("WarpEvent",root, function (PlayerName,text1,text2) redirectPlayer(PlayerName,text2,text1) end )
-
كفووو ياشنب الظاهر الشباب فوق كانوآ يتكلمون هندي وش هذا الهريس يولد 'onClientRender' ?!?!!? isObjectInACLGroup !?!?!?! جربت كود عشان تجي تتكلم :3
-
addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == move then if isPedInVehicle(localPlayer) then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("يجب عليك ان تركب في سياره",255,0,0) end )
-
-----#Server local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( ID ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local PosX , PosY , PosZ = getElementPosition ( source ) table[ source ] = createVehicle( ID , PosX , PosY , PosZ ) warpPlayerIntoVehicle(source,table[ source ]) outputChatBox("* تم شراء سياره",source ,0,255,0,false) end ) ------------------Client GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(241, 183, 608, 393, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(28, 49, 548, 247, false, GUIEditor.window[1]) cow1 = guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.5) cow2 = guiGridListAddColumn(GUIEditor.gridlist[1], "ID", 0.5) GUIEditor.button[1] = guiCreateButton(27, 311, 182, 59, "Buy", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible ( GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) TableList = { {"Alpha", 602}, {"Banshee", 429}, {"Buffalo", 402}, {"Bullet", 541}, {"Flatbed", 455}, {"Forklift", 530}, {"Linerunner", 403}, {"Packer", 443}, {"Roadtrain", 515}, {"Sweeper", 574}, {"Tanker", 514}, {"Towtruck", 525}, {"Trashmaster", 408}, {"Utility van", 552}, {"Benson", 499}, {"Black Boxville", 609}, {"Bobcat", 422}, {"Boxville", 498}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Raindance", 563}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513} } for i , v in ipairs ( TableList ) do Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,cow1,v[1],false,false); guiGridListSetItemText( GUIEditor.gridlist[1],Row ,cow2,v[2],false,false); guiGridListSetItemData ( GUIEditor.gridlist[1] , Row , cow2 , v[2] ,false,false) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then local Se = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local ID = guiGridListGetItemData ( GUIEditor.gridlist[1] , Se , cow2 ) triggerServerEvent ( "GiveVehicle",localPlayer , ID ) end end ) ;
-
انت تبي لاعب يركب في سياره طول ولا كيف
-
TableList = { {"Alpha", 602}, {"Banshee", 429}, {"Buffalo", 402}, {"Bullet", 541}, {"Flatbed", 455}, {"Forklift", 530}, {"Linerunner", 403}, {"Packer", 443}, {"Roadtrain", 515}, {"Sweeper", 574}, {"Tanker", 514}, {"Towtruck", 525}, {"Trashmaster", 408}, {"Utility van", 552}, {"Benson", 499}, {"Black Boxville", 609}, {"Bobcat", 422}, {"Boxville", 498}, {"Maverick", 487}, {"News Chopper", 488}, {"Police Maverick", 497}, {"Raindance", 563}, {"Sparrow", 469}, {"Beagle", 511}, {"Cropduster", 512}, {"Dodo", 593}, {"Nevada", 553}, {"Rustler", 476}, {"Shamal", 519}, {"Skimmer", 460}, {"Stuntplane", 513} } for i , v in ipairs ( TableList ) do Row = guiGridListAddRow ( gridlist ) guiGridListSetItemText( gridlist,Row ,1,v[1],false,false); guiGridListSetItemText( gridlist,Row ,2,v[2],false,false); guiGridListSetItemData ( gridlist , Row , 2 , v[2] ,false,false) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == CreatedCar then local Se = guiGridListGetSelectedItem( gridlist ) local ID = guiGridListGetItemData ( gridlist , Se , 2 ) triggerServerEvent ( "GiveVehicle",localPlayer , ID ) end end ) ; ----------------------------------- local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( ID ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end PosX , PosY , PosZ = getElementPosition ( source ) table[ source ] = createVehicle( ID , PosX , PosY , PosZ ) outputChatBox("* تم شراء سياره",source ,0,255,0,false) end )
-
حطهم من قبل ما اشتغل و هدا اكود كمل ---
-
----------------- Xml.xml [lua----------[/lua]
-
function () local account = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then triggerClientEvent("SetTag",source) end end ------------- addEvent("SetTag",true) function Tag () dxDrawTextOnElement(localPlayer,"MASRIY",1,20,0,0,255,255,1,"arial") end addEventHandler("onClientRender",root,Tag) addEventHandler("SetTag",root,Tag)
-
addEventHandler ( "onClientGUIClick", root,function () if source == send then local Text_1 = guiGetText( editname ) if Text_1 == "" then outputChatBox("# Error",0,255,0) return end local row = guiGridListAddRow ( GRID) guiGridListSetItemText (GRID, row,clom,Text_1, false, false) end end )
-
GRID = guiCreateGridList(9, 21, 443, 220, false, wnd) clom = guiGridListAddColumn(GRID, "Name", 0.3) ]addEventHandler ( "onClientGUIClick", root,function () if source == send then local row = guiGridListAddRow (GRID) local Guitext = guiGetText(editname) if Guitext ~= "" then return end guiGridListSetItemText (GRID, row,clom,Guitext, false, false) end end )
-
بالتوفيق
-
استمر^^
-
guiGridListSetItemColor(grid,Row, v[2], 5, 131, 249, 255, false, false)
-
استمررررررررر^^
-
قصدك تحركها بالماوس زي اللوحه العاديه والا قصدك تخلها مثلا اول ما يفتح اللوحه تتحرك وبعدين توقف بنص الشاشه وكذا قصدي نخلها اول ما تفتح اللوحه تتحرك وبعدين توقف