{"id":16620712,"url":"https://github.com/zfbx/connectqueue","last_synced_at":"2026-04-24T13:31:21.154Z","repository":{"id":187820001,"uuid":"615731636","full_name":"zfbx/connectqueue","owner":"zfbx","description":"A FiveM connection queue forked from nick78111","archived":false,"fork":false,"pushed_at":"2023-03-18T14:20:23.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T08:18:52.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zfbx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-18T14:17:05.000Z","updated_at":"2023-08-22T13:40:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b11e6e35-fc46-4bb0-9dfe-fe560c64bb39","html_url":"https://github.com/zfbx/connectqueue","commit_stats":null,"previous_names":["zfbx/connectqueue"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zfbx/connectqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfbx%2Fconnectqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfbx%2Fconnectqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfbx%2Fconnectqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfbx%2Fconnectqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zfbx","download_url":"https://codeload.github.com/zfbx/connectqueue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfbx%2Fconnectqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T02:44:59.449Z","updated_at":"2026-04-24T13:31:21.139Z","avatar_url":"https://github.com/zfbx.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConnectQueue\n---\nEasy to use queue system for FiveM with:\n- Simple API\n- Priority System\n- Config\n    - Ability for whitelist only\n    - Require steam\n    - Language options\n\n**Please report any bugs on the release thread [Here](https://forum.fivem.net/t/alpha-connectqueue-a-server-queue-system-fxs/22228) or through [GitHub](https://github.com/Nick78111/ConnectQueue/issues).**\n\n## How to install\n---\n- Drop the folder inside your resources folder.\n- Add `start connectqueue` inside your server.cfg. - *Preferrably at the top*\n- Set convars to your liking.\n- Open `connectqueue/server/sv_queue_config.lua` and edit to your liking.\n- Renaming the resource may cause problems.\n\n## ConVars\n---\n\tset sv_debugqueue true # prints debug messages to console\n\tset sv_displayqueue true # shows queue count in the server name '[count] server name'\n\n## How to use / Examples\n---\nTo use the API add `server_script \"@connectqueue/connectqueue.lua\"` at the top of the `__resource.lua` file in question.\nI would also suggest adding `dependency \"connectqueue\"` to it aswell.\nYou may now use any of the functions below, anywhere in that resource.\n\n### OnReady\nThis is called when the queue functions are ready to be used.\n```Lua\n    Queue.OnReady(function() \n        print(\"HI\")\n    end)\n```\nAll of the functions below must be called **AFTER** the queue is ready.\n\n### OnJoin\nThis is called when a player tries to join the server.\nCalling `allow` with no arguments will let them through.\nCalling `allow` with a string will prevent them from joining with the given message.\n`allow` must be called or the player will hang on connecting...\n```Lua\nQueue.OnJoin(function(source, allow)\n    allow(\"No, you can't join\")\nend)\n```\n\n## AddPriority\nCall this to add an identifier to the priority list.\nThe integer is how much power they have over other users with priority.\nThis function can take a table of ids or individually.\n```Lua\n-- individual\nQueue.AddPriority(\"STEAM_0:1:33459672\", 100)\nQueue.AddPriority(\"steam:110000103fd1bb1\", 10)\nQueue.AddPriority(\"ip:127.0.0.1\", 25)\n\n-- table\nlocal prioritize = {\n    [\"STEAM_0:1:33459672\"] = 100,\n    [\"steam:110000103fd1bb1\"] = 10,\n    [\"ip:127.0.0.1\"] = 25,\n}\nQueue.AddPriority(prioritize)\n```\n\n## RemovePriority\nRemoves priority from a user.\n```Lua\nQueue.RemovePriority(\"STEAM_0:1:33459672\")\n```\n\n## IsReady\nWill return whether or not the queue's exports are ready to be called.\n```Lua\nprint(Queue.IsReady())\n```\n\n## Other Queue Functions\nYou can call every queue function within sh_queue.lua.\n```Lua\nlocal ids = Queue.Exports:GetIds(src)\n\n-- sets the player to position 1 in queue\nQueue.Exports:SetPos(ids, 1)\n-- returns whether or not the player has any priority\nQueue.Exports:IsPriority(ids)\n--- returns size of queue\nQueue.Exports:GetSize()\n-- plus many more...\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfbx%2Fconnectqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzfbx%2Fconnectqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfbx%2Fconnectqueue/lists"}