Jump to content

VenomOG

Members
  • Posts

    362
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by VenomOG

  1. VenomOG

    Pages

    not my codes. i'm just a developer . i'm looking to change it anyways but i really need to know how to do pages for other stuff for some settings and designs . can you please?
  2. VenomOG

    Pages

    Either idk what is wrong or something but heres the code function dxDrawSpawner() dxDrawRelativeLine(565 - 1, 500 - 1, 565 - 1, 717, tocolor(1, 0, 0, 255), 1, false) dxDrawRelativeLine(816, 500 - 1, 565 - 1, 500 - 1, tocolor(1, 0, 0, 255), 1, false) dxDrawRelativeLine(565 - 1, 717, 816, 717, tocolor(1, 0, 0, 255), 1, false) dxDrawRelativeLine(816, 717, 816, 500 - 1, tocolor(1, 0, 0, 255), 1, false) dxDrawRelativeRectangle(565, 500, 251, 217, tocolor(0, 0, 0, 116), false) dxDrawRelativeLine(565, 529, 816, 529, tocolor(255, 255, 255, 255), 1, false) dxDrawRelativeText("VEHICLES", 564, 499, 816, 529, tocolor(255, 255, 255, 255), 1.00, dxfont0_vel, "center", "center", false, false, false, false, false) dxDrawRelativeRectangle(579, 533, 227, 29, tocolor(98, 98, 98, 111), false) dxDrawRelativeText(" Key: Vehicle Name:", 579, 533, 806, 562, tocolor(255, 255, 255, 255), 1.10, dxfont1_KOMIKAX, "left", "center", false, false, false, false, false) dxDrawRelativeText("Press 'M' to show cursor", 565, 718, 816, 753, tocolor(255, 0,0, 236), 1.00, dxfont2_KOMIKAX, "center", "center", false, false, false, false, false) for i, k in ipairs(vehs) do dxDrawRelativeRectangle(579, 541+i*21, 227, 21, isMouseInPosition(579, 541+i*21, 227, 21) and tocolor(0, 0, 0, 200) or tocolor(0, 0, 0, 75)) dxDrawRelativeText(i, 579, 541+i*21, 625, 562+(i)*21, tocolor(255, 255, 255, 255), 1, dxfont3_KOMIKAX, "center", "center", false, false, false, false, false) dxDrawRelativeText(getVehicleNameFromModel ( tonumber (k)), 635, 541+i*21, 806, 562+(i)*21, tocolor(255, 255, 255, 255), 1.10, dxfont3_KOMIKAX, "center", "center", false, false, false, false, false) end end Check the loop.. there is where it all starts.. trying to put 7 vehicles on each page only 7
  3. VenomOG

    Pages

    Ok hello ... i'll get straight to it. what if i had a table cars = { {411,"Infernus"}, {546,"Intruder"}, } but the table is longer .. how can i only select 5 a page? each page has the rest of the vehicle?
  4. Dude its not hard , your basically just calling back the function function InEDYoU() guiSetVisible(window, true) showCursor(true, true) end addEventHandler("onClientResourceStart", resourceRoot, function() inEDYoU()----- calls the function end)
  5. VenomOG

    Pages

    Nevermind i got it...
  6. VenomOG

    Pages

    Hey so i have a inventory script and after the player has a lot of items it just over flows i wonder if there is a way i can select a specific amount of rows on each page for now its 7 lines 5 rows any help?
  7. I got it But thanks anyways
  8. So the main goal is a timer to destroy this object hijackStart = createPickup ( x,y,z, 3, 1210 ) destroytimer[hijackStart] = setTimer(function() destroyElement(hijackStart) destroyElement(hijackBlip1) startDelivery() outputMessage("Nobody has delivered the hijack in 15 minutes spawning a new one",255,100,100) end,9000000,1) addEventHandler("onPickupHit",hijackStart,function(hitElement,md) if isTimer(destroytimer[hijackStart]) then killTimer(destroytimer[hijackStart]) end end) in 15 minutes , any other way to approach this?
  9. VenomOG

    Help, please

    Is this even Lua? faggio1 = createVehicle(403,297.32913, -168.79048, 2.54699, 0, 0, 90) setElementData(faggio1, "pojazd_opis", "test \n GBA 421[SA]28") if getElementData(faggio1,"pojazd_opis") then print("it has the data") end Try explaining the code
  10. VenomOG

    No Cache

    Yes this how can i do it , as i see sometimes in huge servers i download atleast 600 mb but i never actually see what it is, that is what i wish, either changing the extension or something
  11. VenomOG

    No Cache

    Is there a way to not cache mods? .txd and .dff or something?
  12. If its a leaked DayZ, we can not help you Although as Komal said, start fresh with the respawn script then add such needed lines
  13. function dxDrawTextOnElement(TheElement,text,height,distance,R,G,B,alpha,size,font,...) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getCameraMatrix() local distance = distance or 20 local height = height or 1 if (isLineOfSightClear(x, y, z+2, x2, y2, z2, ...)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawText(text, sx+2, sy+2, sx, sy, tocolor(R or 255, G or 255, B or 255, alpha or 255), (size or 1)-(distanceBetweenPoints / distance), font or "arial", "center", "center") end end end end addEventHandler("onClientRender", getRootElement(), function () for k,v in ipairs(getElementsByType("player")) do if v == localPlayer then return end dxDrawTextOnElement(v,getPlayerName(localPlayer),1,20,0,0,255,255,1,"default") end end) This should work.
  14. VenomOG

    Serwer

    Cóż, jestem pewien, że wielu graczy chciałoby takiego serwera, spróbuj (HELPING)
  15. local MINIMUM_PASSWORD_LENGTH = 6 local function isPasswordValid(password) return string.len(password) >= MINIMUM_PASSWORD_LENGTH end addCommandHandler("register", function(player, command, username, password) if not username or not password then return outputChatBox("Syntax: /" .. command .. " [nume utilizator] [ parola ]", player, 255, 205, 201) end if getAccount(username) then return outputChatBox("Un cont cu acest nume exista deja.", player, 255, 205, 201) end if not isPasswordValid(password) then return outputChatBox("Parola este invalida/Parola trebuie sa aiba minim 6 caractere.", player, 255, 100, 100) end passwordHash(password, "bcrypt", {}, function(hashedPassword) local account = addAccount(username, hashedPassword) setAccountData(account, "hashed_password", hashedPassword) outputChatBox("Contul tau a fost inregistrat cu succes! Acum poti folosi /accountLogin pentru a te autentifica.", player, 100, 255, 100) end) end) addEvent("auth:login-attempt", true) addEventHandler("auth:login-attempt", root, function (username, password) local account = getAccount(username) if not account then return outputChatBox("Nu s-a gasit niciun cont cu acest nume si aceasta parola.", client, 255, 100, 100) end if logIn(client, account, password) then outputChatBox("Login: Logged in", client, 255, 100, 100) triggerClientEvent(client, "login-menu:close", client) end end) addCommandHandler("accountLogout", function(player,_) logOut(player) end) NOT TESTED, i'm sure the login part is fixed though, just make your edits (hashed stuff)
  16. Heres something that might help Explanation: This Stop message indicates that a kernel-mode process or driver attempted to access a memory address to which it did not have permission to access. The most common cause of this error is an incorrect or corrupted pointer that references an incorrect location in memory. A pointer is a variable used by a program to refer to a block of memory. If the variable has an incorrect value in it, the program tries to access memory that it should not. When this occurs in a user-mode application, it generates an access violation. When it occurs in kernel mode, it generates a STOP 0x0000000A message. If you encounter this error while upgrading to a newer version of Windows, it might be caused by a device driver, a system service, a virus scanner, or a backup tool that is incompatible with the new version.scanner, or a backup tool that is incompatible with the new version. *EDIT: TO WHO MIGHT GET THIS ERROR IN THE FUTURE
  17. Well before designing anything, show the "Output" option and drag the window somewhere where u can re-view it and once done designing just click "Reload" and it will be fixed.
  18. VenomOG

    Question

    If i create my own OGP (Open Game Panel) Hosting and host MTA servers, do i need permission from an administrator or anyone?
  19. As he said > use "Admin" ACL for all permissions
  20. send me account script in private
  21. Mate are u logged in?
  22. addEventHandler("onPlayerQuit",root,function() saveNewClothing(source) end)
×
×
  • Create New...