Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. local wallpaperDirectory = "wallpapers/" local selectedWallpaper = 1 local wallpapersTable = { "moutain", "horse", "car", "river" } function drawWallpapers() dxDrawImage(0, 0, 512, 512, wallpaperDirectory .. wallpapersTable[selectedWallpaper] .. ".png") end addEventHandler("onClientRender", root, drawWallpapers) setTimer(function() selectedWallpaper = wallpapersTable[selectedWallpaper+1] and selectedWallpaper+1 or 1 end, 5000, 0)
  2. How is "DestinationA" and "DestinationB" called?
  3. You can't. guiLabels are created when you call the function, and don't update automatically. You'll have to create a function that'd update the text accordingly to the player's health.
  4. Easy way. As you have a compiled script, this means you can add a line into it. local givenSerial = -- The player's serial who bought the script. function resourceLoad() if givenSerial == getPlayerSerial(localPlayer) then -- Loading functions end end addEventHandler("onClientResourceStart", resourceRoot, resourceLoad) This means you'll have to get their serial, when they make the purchase, and then compile the resource this way.
  5. Or you can just use fetchRemote and use the responseInfo/success part to check if his serial is in the database. I'd reconsider this resource, as this means you have to have an internet connection to be able to use the script. Are you planning to give them a compiled script, or a source code?
  6. If you have accounts associated to players, you can easily save a name using setAccountData and use setPlayerName after they logged into their account.
  7. A player cannot join your server if he has no internet connection, unless you are hosting a local server and that player is connected to your internet.
  8. I don't get what you are trying to achieve. On a local server, you'll be the only player connected to the server. If you open the ports for it, the player has to have an internet connection to join your server.
  9. It's more complicated than that. The createWeapon function doesn't create a player held weapon, but a weapon on the world. You can use models, attach it to the players body, and create a custom damage system. You'd have to create a texture that would hide the "default" weapon that the player is holding all the time. Then using that custom damage system, you'd be able to create weapons till you'd run out of usable world models that you'd overwrite.
  10. "Magyarul minden pozícióra keresel embert, ami azt jelenti, hogy te semmit nem nyújtasz. " Igen, ez is a te kommented, es ez boven tamadas jellegu.
  11. Why do you need those passwords?
  12. I suppose you are using Accounts, there are ways to create a workaround to save the passwords, but you should hash those datas, as if someone gets damaged because you have saved his/her password as plain text, you'll be in trouble.
  13. Valaszt adtam a kerdesedre, tok mindegy, hogy o valaszolt, vagy nem. Azert kerhetlek meg ra, mert Moderator vagyok ebben a sectionben. Tamadas jellegu a kommented, igy de, megsertetted a forum szabalyzatat.
  14. You probably have a code somewhere, that causes that the radar in the left-bottom corner to appear after you close the F11 map. Tested on a default server, with default resources, and works just fine without the radar reappearing after closing the F11 map. setPlayerHudComponentVisible("radar", false)
  15. @pa3ck A posztoló leírta, hogy ez egy fizetett munkalehetőség. Miután fizetett munkalehetőség, nem értem, hogy ebbe a posztoló miért ne nyújtana semmit. Ez a piac, kereslet-kínálat. Szerinted a vállalkozások miért vesznek fel fejlesztőket? Nem, nem azért hogy legyen a cégtulajdonos mellett még fejlesztő. Mellőzzük az ilyesfajta viselkedést. Köszönöm.
  16. Én pedig arra kérlek titeket, hogy ősrégi posztokat ne bumpoljatok, mert semmi értelme.A posztoló November 18-án jelentkezett be utoljára, így még a reakciókat sem fogja látni.
  17. It exists, and works perfectly. Maybe there is an error in your code. Maybe try to post it in here so we can help you further.
  18. Segítségnyújtás lopott/publikált modokban ezen a felületen tiltott. Zárom a posztot, és kérlek többet ne kérj segítséget ezzel kapcsolatban.
  19. Akkor a modellel van gond. Miben készítetted el?
  20. And those basics are taught in that Lua manual.
  21. Moved to the right section. Next time please post in the Tutorials section only if you are publishing a tutorial or useful information.
  22. I wont tell you exactly how to make your script. I'll explain that little snippet of the code. local scrollN = 0 -- Settings scrolling state to 0, so the scrolling is at the top. local pTable = getElementsByType("player") -- Getting the players. for i = scrollN, scrollN + 12 do -- Using the scrollN value, we can scroll through the players in the pTable, increasing the scrollN value will make to skip the first N players in the table. local selectedP = pTable[i] -- Selecting the player from the playerTable using the "i" val. ... -- Drawing player info. end
  23. It is beginner friendly. Videos can help, but its much easier to understand it if you read it over and over again. You'll be able to understand coding in general, so you'll kinda understand more from the wiki page, yeah.
  24. local scrollN = 0 local pTable = getElementsByType("player") for i = scrollN, scrollN + 12 do local selectedP = pTable[i] ... end You'll have to arrange the code, and add a way to increase and decrease the scrollN value.
  25. If you aren't trying, we aren't willing to help you. When the player logins, set his element data according to the saved data (could be SQL, or account data). When he uses it, set it with setElementData, and when he leaves, save it to the SQL or as the account data.
×
×
  • Create New...