{"id":17010990,"url":"https://github.com/rm-code/pz-keyinjector","last_synced_at":"2025-08-07T01:13:06.952Z","repository":{"id":92812001,"uuid":"38208235","full_name":"rm-code/pz-keyinjector","owner":"rm-code","description":"A small modding utility that allows the addition of custom keys to Project Zomboid.","archived":false,"fork":false,"pushed_at":"2015-07-27T08:21:53.000Z","size":336,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-22T13:22:15.987Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rm-code.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}},"created_at":"2015-06-28T17:50:03.000Z","updated_at":"2022-08-28T04:21:54.000Z","dependencies_parsed_at":"2023-03-16T08:45:55.011Z","dependency_job_id":null,"html_url":"https://github.com/rm-code/pz-keyinjector","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rm-code/pz-keyinjector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-code%2Fpz-keyinjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-code%2Fpz-keyinjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-code%2Fpz-keyinjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-code%2Fpz-keyinjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rm-code","download_url":"https://codeload.github.com/rm-code/pz-keyinjector/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-code%2Fpz-keyinjector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269182264,"owners_count":24374091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-14T06:05:57.941Z","updated_at":"2025-08-07T01:13:06.901Z","avatar_url":"https://github.com/rm-code.png","language":"Lua","readme":"# Project Zomboid Key Injector\n\nAn example of how to add custom keybindings to [Project Zomboid](http://projectzomboid.com/).\n\n![poster](https://raw.githubusercontent.com/rm-code/pz-keyinjector/develop/poster.png)\n\n## Usage Instructions\n\nTo add custom keys for your own mod you will need to modify the constants _CUSTOM_SECTION_ and _CUSTOM_KEYS_ in [_KeyInjector.lua_](https://raw.githubusercontent.com/rm-code/pz-keyinjector/develop/media/lua/client/KeyInjector.lua):\n\n```\n-- The custom section which will be used as a separator in the options.\nlocal CUSTOM_SECTION = 'RMTESTMOD';\n\n-- The keys we want to register at the beginning of the game.\nlocal CUSTOM_KEYS = {\n    { value = 'TOGGLE_STUFF', key = 24 },\n    { value = 'TOGGLE_OTHER', key = 25 },\n    -- Add more keys here\n}\n\n```\n\nThese need to correspond with the entries in your translation files:\n\n```\nUI_DE = {\n    UI_optionscreen_binding_RMTESTMOD = \"Custom Mod\",\n    UI_optionscreen_binding_TOGGLE_STUFF = \"Toggle some functionality\",\n    UI_optionscreen_binding_TOGGLE_OTHER = \"Toggle other functionality\",\n};\n\n```\n\nTo avoid conflicts with other mods you should try to choose unique identifiers for your translation files / strings.\n\nIf you need a \"real-world\" example, check out the [Better Shouts](https://github.com/rm-code/Better-Shouts) mod, which adds a custom key code for shouting.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-code%2Fpz-keyinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frm-code%2Fpz-keyinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-code%2Fpz-keyinjector/lists"}