Infinity#

Members
  • Content Count

    68
  • Joined

  • Last visited

  • Days Won

    1

Infinity# last won the day on July 7 2017

Infinity# had the most liked content!

Community Reputation

26 Good

4 Followers

About Infinity#

  • Rank
    Snitch
  • Birthday 01/11/1990

Details

  • Gang
    SAFG
  • Location
    Las Venturas
  • Occupation
    Businessman

Recent Profile Visitors

1,916 profile views
  1. https://wiki.multitheftauto.com/wiki/Custom_Train_Tracks
  2. Won't affect the server at all. Is pulling from a table with stored players in it. So if X amount of players in the table, same X amount gets pulled.
  3. local timeTable = {} local timePlayers = {} function startTimeStamp() if not timeTable[source] then timeTable[source] = {["hours"]=0,["minutes"]=0,["seconds"]=0} end table.insert(source, timePlayers) setElementData(source, "onlineTime", "0:0:0") end addEventHandler("onPlayerLogin", root, startTimeStamp) function deleteTimeStamp() if timeTable[source] then timeTable[source] = nil end for i, v in ipairs(timePlayers) do if source == v then table.remove(timePlayers, i) end end end addEventHandler("onPlayerLogout", root, deleteTimeStamp) addEventHandler("onPlayerQuit", root, deleteTimeStamp) setTimer(function() for _, players in ipairs(timePlayers) do if isElement(players) and getElementType(players) == "player" and timeTable[players] then timeTable[players]["seconds"] = tonumber(timeTable[players]["seconds"] or 0) + 1 if tonumber(timeTable[players]["seconds"]) > 59 then timeTable[players]["minutes"] = tonumber(timeTable[players]["minutes"] or 0) + 1 timeTable[players]["seconds"] = 0 end if tonumber(timeTable[players]["minutes"]) > 59 then timeTable[players]["minutes"] = 0 timeTable[players]["hours"] = tonumber(timeTable[players]["hours"] or 0) + 1 end local hours = timeTable[players]["hours"] or 0 local minutes = timeTable[players]["minutes"] or 0 local seconds = timeTable[players]["seconds"] or 0 setElementData(source, "onlineTime", "".. string.format("%02d",tostring(hours)) ..":".. string.format("%02d",tostring(minutes)) ..":".. string.format("%02d",tostring(seconds)) .."") end end end, 1000, 0) Worked on a small code for you. This goes on server.Lua (You can implement it into your own code. You are free to take it) If you wish to implement it into your database let me know. I can write that small code for you.
  4. You should run a timer to see how long a player stays on the server for and when the player quits to stop the timer.
  5. Infinity#

    GuiEditor IMAGE

    In addition: - If you don't see the image you recently uploaded, try refreshing by clicking the refresh button - Sometimes GUI editor bugs where it still shows the old image if the image was updated with the same name, you can just restart the resource in that case
  6. timerClient on client.Lua is not identified
  7. addEvent("createGui", true) function guiFunction() okno = guiCreateWindow(0.35, 0.26, 0.16, 0.45, "Praca GAZECIARZ", true) guiWindowSetSizable(okno, false) button = guiCreateButton(0.16, 0.56, 0.73, 0.39, "", true, okno) end function openGui() if not isElement(okno) then guiFunction() showCursor(true) guiSetInputMode("no_binds_when_editing") elseif isElement(okno) then guiSetVisible(okno, not guiGetVisible(okno)) showCursor(not isCursorShowing()) guiSetInputMode("no_binds_when_editing") end end addEventHandler("createGui", getRootElement(), openGui) local jobMarker = createMarker(-2442, 754, 34, "cylinder", 2) addEventHandler("onMarkerHit", jobMarker, function(hitElement, matchingDimension) if isElement(hitElement) and getElementType(hitElement) == "player" and not getPedOccupiedVehicle(hitElement) then -- checks if element exists, if is player, and not inside a car if matchingDimension then -- if both player and marker are on the same dimension -- triggerClientEvent(hitElement, "createGui", hitElement) end end end) Fixed your code, not tested but should work. If you want some help understanding this, you can PM me and I'll be glad to help you.
  8. SARS has been shutdown. We're currently working on something new. Join us at https://discord.gg/rGRwAZz to keep up with the process.
  9. Is sad seeing someone your age still acting the way you're acting. Anyhow, yes, I said if you have any evidence us using your scripts, then report us to MTA. Stop making false accusations, save your words and take the necessary actions you have to, of course, if you have proof of what you're accusing us with. This won't be one of those "WSS vs SAES" endless fighting & arguments you had with the WSS Server back in the day. "We wish all the luck," thank you, but you can save it for when you actually mean it. Because I too can make accusations of how SAES have stolen our ideas that ran in past SARS generations as well. But that won't be looked at, why? Because SARS doesn't have anyone from the MTA Team in the team to believe us, or actually follow up with what we say. You in the SAES Team do. All I ask of you is, stop replying in our topics. You and your SAES team members.
  10. Bueno, Yo también hablo castellano, soy de Argentina. Voy a probar el script que me diste, y te aviso si funciona. 

  11. Capital A on "admin", everything else should be good
  12. Give me the image below, and I'll write it down for you. Everything you've above is right and it should work. local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() local zombieKills = tonumber(getElementData(localPlayer, "Zombie kills")) or 'None' dxDrawRectangle(screenW * 0.0454, screenH * 0.6263, screenW * 0.1691, screenH * 0.0404, tocolor(0, 0, 0, 155), false) dxDrawText("Zombie Kills: ".. zombieKills .."", screenW * 0.0527, screenH * 0.6406, screenW * 0.2072, screenH * 0.6536, tocolor(255, 255, 255, 255), 1.20, "clear", "center", "center", false, false, false, false, false) end) This code will draw a rectangle and a text showing the player's zombie kills. You can add a line to it with the dxDrawImage above, based on the player's zombie kills what image should it draw since that is what you want. So the player can know their rank by the number of zombie kills they've. Perhaps you can even make another line for dxDrawText to show the name of the rank as well. Here you go: If there's anything missing/bugging, let me know. Untested but this should work 100%. And it'll open up more possibilities. exports.scoreboard:addScoreboardColumn('Zombie kills') addEvent("onZombieWasted",true) addEventHandler("onZombieWasted", root, function(killer) givePlayerMoney(killer, 50) addPlayerZombieKills(killer) end) function addPlayerZombieKills(killer) if isElement(killer) then if getElementData(killer, "Zombie kills") then local zombieKills = tonumber(getElementData(killer, "Zombie kills")) setElementData(killer, "Zombie kills", zombieKills + 1) else setElementData(killer, "Zombie kills", 1) outputChatBox("'Zombie kills' stats are now being recorded on your account", killer, 0, 200, 0, false) end end end addEventHandler("onPlayerLogin", root, function(_, account) if isGuestAccount(account) then return end if getPlayerAccount(source) and getAccountData(account, "Zombie kills") then local zombieKills = getAccountData(account, "Zombie kills") if zombieKills then setElementData(source, "Zombie kills", tostring(zombieKills)) else setElementData(source, "Zombie kills", 0) outputChatBox("'Zombie kills' stats are now being recorded on your account", source, 0, 200, 0, false) end end end) function saveZombieData() if getPlayerAccount(source) then local account = getPlayerAccount(source) if getAccountData(account, "Zombie kills") then local zombieKills = tonumber(getElementData(source, "Zombie kills")) if zombieKills then setAccountData(account, "Zombie kills", zombieKills) end end end end addEventHandler("onPlayerQuit", root, saveZombieData) addEventHandler("onPlayerLogout", root, saveZombieData)
  13. I don't understand. Try to explain more of what it is you want and I'll write the script for you myself.