- 
                Posts2,259
- 
                Joined
- 
                Last visited
- 
                Days Won2
Everything posted by Adham
- 
	مثال اخ عبد الكريم عمله Cars = { {'Monster',9000,580}, {'Frary',10000,570}, -- Text , Money , IDcar -- } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ;
- 
	مثال اخ عبد الكريم عمله Cars = { {'Monster',9000,580}, {'Frary',10000,570}, -- Text , Money , IDcar -- } for i , v in ipairs ( Cars ) do Row = guiGridListAddRow ( grid ) guiGridListSetItemText( grid,Row ,1,v[1],false,false); guiGridListSetItemText( grid,Row ,2,v[2],false,false); guiGridListSetItemData ( grid , Row , 1 , v[3] ) end addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == btn then local Se = guiGridListGetSelectedItem( grid ) if Se and Se ~= -1 then local Money = guiGridListGetItemText ( grid, Se, 2 ) local iD = guiGridListGetItemData ( grid , Se , 1 ) triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) end end end ) ; local table = { } addEvent("GiveVehicle" ,true) addEventHandler("GiveVehicle" ,root, function ( Money , id ) if isElement( table[ source ] ) then destroyElement ( table[ source] ) end local Money_ = getPlayerMoney ( source ) if Money_ >= tonumber ( Money ) then PosX , PosY , PosZ = getElementPosition ( source ) takePlayerMoney( source , tonumber ( Money ) ) table[ source ] = createVehicle( id , PosX , PosY , PosZ ) outputChatBox("* تم شراء الشخصيه",source ,0,255,0,false) else outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) end end ) ;
- 
	addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
- 
	addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
- 
	createVehicle تسوي سياره -- warpPedIntoVehicle تنقلو للسياره
- 
	createVehicle تسوي سياره -- warpPedIntoVehicle تنقلو للسياره
- 
	او فيه طريفه تانيه للسحب "onClientGUIClick" sPedInVehicle triggerServerEvent destroyElement getPedOccupiedVehicle outputChatBox وممكن تستمعل في الشات -- واكيد راح تسوي في اول سرفر addEvent addEventHandler
- 
	او فيه طريفه تانيه للسحب "onClientGUIClick" sPedInVehicle triggerServerEvent destroyElement getPedOccupiedVehicle outputChatBox وممكن تستمعل في الشات -- واكيد راح تسوي في اول سرفر addEvent addEventHandler
- 
	سحب السياره addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
- 
	سحب السياره addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[1] then if isPedInVehicle ( localPlayer ) then destroyElement ( getPedOccupiedVehicle(localPlayer) ) end end end )
- 
	غلط. تخش علي الاسل Manage Acl ثم ACL: ثم Default وتضعط عليها جامد ثم add Right بعدين تكتب funtcion.addAccount انا جربتها واشتغلت مع كلام DTC12 .
- 
	غلط. تخش علي الاسل Manage Acl ثم ACL: ثم Default وتضعط عليها جامد ثم add Right بعدين تكتب funtcion.addAccount انا جربتها واشتغلت مع كلام DTC12 .
- 
	- "[L]e3bA" name="UnKnown" version="1.0.0" type="s.s" />
- 
	- "[L]e3bA" name="UnKnown" version="1.0.0" type="s.s" />
- 
	addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then isClear = guiGetText( GUIEditor.edit[1] ) if isClear == "clr" then triggerServerEvent("Send_",localPlayer) end end end ) ;

 
        