Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. Adham

    حلللل

    اهو الصوره
  2. Adham

    حلللل

    debugscript: Your debug mode was set to 3
  3. Adham

    حلللل

    debugscript: Syntax is 'debugscript '
  4. Adham

    حلللل

    حطيطو client side ما ظبت
  5. Adham

    حلللل

    server or client?
  6. Adham

    حلللل

    ما ظبت ارجو تجبلي الكود وتعملو علي احدذيات اهي 2469.3813476563,-1646.3508300781,13.780097007751
  7. Adham

    حلللل

    local screenX , screenY = guiGetScreenSize ( ) function leaderText() x, y, z = 2227.2404785156,1839.9521484375,10.8203125 -- حط احداثيات المكان local x,y = getScreenFromWorldPosition(x, y, z+0.-- s8) --> local camX,camY,camZ = getCameraMatrix() if (x and y and getDistanceBetweenPoints3D(camX, camY, camZ, xx, yy, zz) <= 50) then dxDrawText ( "weapon shop" , x , y , x , y , tocolor (255, 255, 255, 255) , ( screenX / 1440 ) * 2 , "default-bold" , "center" , "center" , false , true , false ) end end addEventHandler("onClientPreRender", root, leaderText) ايش المشكله؟
  8. طيب يمكن المودات؟
  9. السلام عليكم انا اليوم شوفت في سرفررات كثير المكتوب كدا المكتوب شوب الاسلحه ناس قلتلي الهوا مود ابي لنك تحميلو وشكرا . وفديو كيف استخادو
  10. ارجو حل المشكله '-'
  11. وابي مود الtime الفي تاب ب لو سمحتو يكون باين كدا Time مب كدا PlayTime1 و عاوز مود الرنك الفي تاب ونا الحط الصور
  12. سلام عليكم ابي مود سنجل ويعمل علي البنق والشرط الفيه Signle
  13. Adham

    خطأء

    ايوا بس في مشكله السهم دا $ بيظهر كدا 55,55$ انا عاز يظهر $55,111
  14. مش بتشتغل اللوحه اصلن مش بتفتح
  15. طيب لما بعمل register بتقفل اللوحه ابي لما حد يضعط register يعمل حساب يعني يكتب اسم حسابو الباسورد وييضعط register يعمل الحساب
  16. ومشكله تانيه لما احد يخش السرفر لازم يضعط علي ف1 او ف5 عشان يظهر السهم عشان يسجل ارجو حل
  17. اول ما حد يخش السرفر لما يخلص التحميل
  18. مشكله انا صنعت مود الlogin في مشكله فيه اول ما اخش السرفر يجيلي اللوحه في وجهي + لما احط الكود بتاع اللوحه ما تيجي في وجهي اللوحه login ما تيجي خالص و لما اضعط register مش بتعمل حل كود client --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { staticimage = {}, edit = {}, button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(60, 103, 705, 421, ":: Login Systeam ::", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 22, 675, 189, ":Shop/images/adham.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(184, 217, 328, 15, "Welcome @ To Server, Please Login to Enter the game", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(170, 246, 93, 24, "Username:", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(232, 242, 239, 28, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(232, 280, 239, 28, "", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(170, 280, 93, 24, "Password:", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(127, 314, 173, 47, "Login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(372, 318, 173, 47, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.label[4] = guiCreateLabel(522, 396, 355, 15, "#Created By #[L]e3bA | v3.4.1", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 255, 0, 0) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onLogin",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[2] then triggerServerEvent("onReg",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) end ) server -- addEvent("onLogin", true) addEventHandler("onLogin",root, function (player, user, pass, NameAccount, Password) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly!", player, 255, 255, 0 , true ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "Login Error!", player, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", player, 255, 0, 0 ) end end ) -- addEvent("onReg", true) addEventHandler("onReg",root, function ( player, user, pass, NameAccount, Password ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "You Are Already Logged in !", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "Register Error !", player, 255, 0, 0 ) end end end )
  19. Adham

    خطأء

    سلام عليكم, اليوم انا جبت مود فلوس .. بيظهر في تاب كدا 451531 انا عاوزو يطلع في تاب كذا مثال لو واحد معاه 1م مثلن $1,000,000 المعاه 10 م $10,00,00 المعا 100 الف $100,000 1الف $1,000 كودات المود . server.lua exports [ "scoreboard" ]:addScoreboardColumn ( "Money", 3 ) -- Add the "Money" column to the scoreboard. function updatePlayersMoney ( ) -- Create "updatePlayersMoney" function. for index, player in ipairs ( getElementsByType "player" ) do -- Loop through all online players. setElementData ( player, "Money", getPlayerMoney ( player ) ) -- Set "Money" element data to the player money. end -- End our loop. end -- End our function. setTimer ( updatePlayersMoney, 2500, 0 ) -- Set a infinite 2.5 seconds timer to execute "updatePlayersMoney" function.
  20. انا جربتها لما بضغط مثلن علي بيتون اسمه Spawn Vechile مش بيعمل ونا حاطط الاكواد صح ارجو تعديل الخطء
  21. المشكله في button كلهم ونا حاطط الاكواد صح
  22. client -- GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() Window_VS = guiCreateWindow(108, 108, 596, 401, ":: Vehicle Systeam ::", false) guiWindowSetSizable(Window_VS, false) guiSetVisible(Window_VS ,false) Grid_VS = guiCreateGridList(9, 24, 314, 350, false, Window_VS) guiGridListAddColumn(Grid_VS, "Vehicle", 0.3) guiGridListAddColumn(Grid_VS, "Price", 0.3) guiGridListAddColumn(Grid_VS, "Healthy", 0.3) Button_VS_sn = guiCreateButton(393, 24, 179, 38, "Spawn Vehicle", false, Window_VS) guiSetProperty(Button_VS_sn, "NormalTextColour", "FFAAAAAA") Button_VS_dy = guiCreateButton(393, 72, 179, 38, "Destroy Car", false, Window_VS) guiSetProperty(Button_VS_dy, "NormalTextColour", "FFAAAAAA") Button_VS_lk = guiCreateButton(393, 116, 179, 38, "Lock/Unlock Vehicle", false, Window_VS) guiSetProperty(Button_VS_lk, "NormalTextColour", "FFAAAAAA") Button_VS_lt = guiCreateButton(393, 160, 179, 38, "Light/Unlight Vehicle", false, Window_VS) guiSetProperty(Button_VS_lt, "NormalTextColour", "FFAAAAAA") Button_VS_bp = guiCreateButton(393, 203, 179, 38, "Mark/Unmark Vehicle", false, Window_VS) guiSetProperty(Button_VS_bp, "NormalTextColour", "FFAAAAAA") Button_VS_Spc = guiCreateButton(393, 245, 179, 38, "Spectate Vehicle", false, Window_VS) guiSetProperty(Button_VS_Spc, "NormalTextColour", "FFAAAAAA") Button_VS_sl = guiCreateButton(393, 293, 179, 38, "Sell Vehicle", false, Window_VS) guiSetProperty(Button_VS_sl, "NormalTextColour", "FFAAAAAA") Button_VS_close = guiCreateButton(393, 336, 179, 38, "X", false, Window_VS) guiSetProperty(Button_VS_close, "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(10, 374, 201, 17, "#Created By FawaD | v3.4.1", false, Window_VS) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end ) function updateGridList() local data = getElementData(localPlayer, "VehicleInfo") if data then local rw, cl = guiGridListGetSelectedItem(Grid_VS) guiGridListClear(Grid_VS) for i, data in ipairs (data) do local carName = getVehicleNameFromModel(data["Model"]) local ID = data["ID"] local Cost = data["Cost"] local HP = math.floor(data["HP"]) local PreCost = math.ceil(Cost*.9*HP/100/10) local row = guiGridListAddRow(Grid_VS) guiGridListSetItemText(Grid_VS, row, 1, carName, false, true) guiGridListSetItemData(Grid_VS, row, 1, ID) guiGridListSetItemText(Grid_VS, row, 2, PreCost, false, true) guiGridListSetItemText(Grid_VS, row, 3, HP.." HP", false, true) end guiGridListSetSelectedItem(Grid_VS, rw, cl) end end bindKey("F4", "down", function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then if getElementData(localPlayer, "MissionWarProtection") and getElementData(localPlayer, "MissionProtection")then return end guiSetVisible(Window_VS, not guiGetVisible(Window_VS)) guiSetVisible (Window_CHK, false) showCursor(guiGetVisible(Window_VS)) end end) triggerServerEvent("onOpenGui", localPlayer) addEventHandler("onClientElementDataChange", root, function(dd) if getElementType(source) == "player" and source == localPlayer and dd == "VehicleInfo" then local data = getElementData(source, dd) if data then updateGridList() end end end) function WINDOW_CLICK_VEHICLE (button, state, absoluteX, absoluteY) local id = guiGridListGetSelectedItem(Grid_VS) local ID = guiGridListGetItemData(Grid_VS, id, 1) if source == Button_VS_close then guiSetVisible(Window_VS, false) showCursor(false) end if (source == Grid_VS) then if id == -1 and idd then guiGridListSetSelectedItem(Grid_VS, idd, 1) return false else idd = guiGridListGetSelectedItem(Grid_VS) end elseif id == -1 then elseif (source == Button_VS_sn) then if not isInColExport () then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) end elseif (source == Button_VS_dy) then triggerServerEvent("DestroyMyVehicle", localPlayer, ID) elseif (source == Button_VS_lt) then triggerServerEvent("LightsMyVehicle", localPlayer, ID) elseif (source == Button_VS_bp) then triggerServerEvent("BlipMyVehicle", localPlayer, ID) elseif (source == Button_VS_lk) then triggerServerEvent("LockMyVehicle", localPlayer, ID) elseif (source == Button_VS_sl) then guiSetVisible(Window_CHK, true) local carName = guiGridListGetItemText(Grid_VS, guiGridListGetSelectedItem(Grid_VS), 1) local carprice = guiGridListGetItemText(Grid_VS, guiGridListGetSelectedItem(Grid_VS), 2) guiSetText(Label_CHK, 'Are you sure you want to sell this Vehicle "'..carName..'" for $'..carprice) elseif source == Button_CHK_Y then triggerServerEvent("SellMyVehicle", localPlayer, ID) guiSetVisible(Window_VS, false) guiSetVisible(Window_CHK, false) showCursor(false) elseif source == Button_CHK_N then guiSetVisible (Window_CHK, false) elseif source == Button_VS_Spc then if getElementInterior(localPlayer) == 0 then if getElementData(localPlayer,"Stats") < 2 then SpecVehicle(ID) end end elseif source == Button_VS_Fix then triggerServerEvent("FixMyVehicle", localPlayer, ID) elseif source == Button_VS_Warp then if not isInColExport () then triggerServerEvent("WarpMyVehicle", localPlayer, ID) end end end addEventHandler("onClientGUIClick", resourceRoot, WINDOW_CLICK_VEHICLE) function SpecVehicle(id) if spc then removeEventHandler("onClientPreRender", root, Sp) setCameraTarget(localPlayer) if isTimer(freezTimer) then killTimer(freezTimer) end freezTimer = setTimer(function() setElementFrozen(localPlayer, false) end, 2500, 1) spc = false return end for i, vehicle in ipairs(getElementsByType("vehicle")) do if getElementData(vehicle, "Owner") == localPlayer and getElementData(vehicle, "ID") == id then cVeh = vehicle spc = true addEventHandler("onClientPreRender", root, Sp) guiSetVisible(Window_VS, false) showCursor(false) break end end end function Sp() if isElement(cVeh) then local x, y, z = getElementPosition(cVeh) setElementFrozen(localPlayer, true) setCameraMatrix(x, y-1, z+15, x, y, z) else removeEventHandler("onClientPreRender", root, Sp) setCameraTarget(localPlayer) if isTimer(freezTimer) then killTimer(freezTimer) end freezTimer = setTimer(function() setElementFrozen(localPlayer, false) end, 2500, 1) spc = false end end ShopMarkersTable = {} local ShopTable = { [1] = {ID = {{491, 1441400} ,{540, 1436800} ,{401, 1430000} ,{546, 1527700} ,{505, 1414000} ,{500, 1402600} ,{463, 1659300} ,{492, 1459300} ,{547, 1429600} ,{586, 1629600} ,{467, 1354300} ,{479, 1244800} ,{404, 1059900} ,{410, 946200} ,{471, 593600} ,{418, 300000} }, vPosX = 2134, vPosY = -1170, vPosZ = 28.15, PosX = 2133, PosY = -1149, PosZ = 23.4, CamX = 2134.1, CamY = -1160, CamZ = 35, lookAtX = 2133.3, lookAtY = -1168, lookAtZ = 28}, [2] = {ID = {{516, 1819800} ,{458, 1815300} ,{580, 1801600} ,{421, 1801600} ,{527, 1667300} ,{581, 2151400} ,{409, 1744500} ,{585, 1696600} ,{474, 1573800} ,{419, 1539500} ,{436, 1539500} ,{545, 1530400} ,{466, 1616700} ,{529, 1580200} ,{550, 1473400} ,{468, 1966500} }, vPosX = 552, vPosY = -1288, vPosZ = 18, PosX = 562, PosY = -1270, PosZ = 16, CamX = 552, CamY = -1275.82, CamZ = 21.61, lookAtX = 552, lookAtY = -1276.77, lookAtZ = 21.29}, [3] = {ID = {{533, 1973100} ,{555, 1943400} ,{507, 2041200} ,{521, 2427500} ,{461, 2427500} ,{566, 1995500} ,{551, 1972700} ,{400, 1970400} ,{558, 1863600} ,{549, 1824800} ,{579, 1902000} ,{576, 1797400} ,{526, 1781400} ,{517, 1772300} ,{575, 1763200} ,{561, 1822100} }, vPosX = 1942.5, vPosY = 2052, vPosZ = 11, PosX = 1946, PosY = 2068, PosZ = 10, CamX = 1930.36, CamY = 2052.78, CamZ = 14.71, lookAtX = 1931.36, lookAtY = 2052.78, lookAtZ = 14.43}, [4] = {ID = {{536, 2201300} ,{567, 2258000} ,{602, 2135100} ,{534, 2128300} ,{426, 2214600} ,{439, 2114600} ,{412, 2114600} ,{587, 2087200} ,{565, 2084900} ,{589, 2082600} ,{542, 2071200} ,{496, 2043900} ,{535, 2043900} ,{405, 2127900} ,{445, 2107300} ,{518, 1980000} }, vPosX = -1950, vPosY = 266, vPosZ = 36.2, PosX = -1954, PosY = 299, PosZ = 34, CamX = -1960.18, CamY = 266.06, CamZ = 37.94, lookAtX = -1959.2, lookAtY = 266.06, lookAtZ = 37.73}, [5] = {ID = {{411, 3000000} ,{429, 2765000} ,{541, 2746700} ,{451, 2739900} ,{415, 2593800} ,{480, 2536800} ,{402, 2525400} ,{477, 2484300} ,{562, 2456900} ,{506, 2365600} ,
×
×
  • Create New...