{"id":13690098,"url":"https://github.com/dig/onset-data","last_synced_at":"2025-03-03T06:15:37.059Z","repository":{"id":99159990,"uuid":"229465335","full_name":"dig/onset-data","owner":"dig","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-21T19:34:54.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T09:49:35.504Z","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/dig.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}},"created_at":"2019-12-21T18:09:47.000Z","updated_at":"2020-05-27T01:22:12.000Z","dependencies_parsed_at":"2023-06-04T08:00:26.605Z","dependency_job_id":null,"html_url":"https://github.com/dig/onset-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dig%2Fonset-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dig%2Fonset-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dig%2Fonset-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dig%2Fonset-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dig","download_url":"https://codeload.github.com/dig/onset-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241616676,"owners_count":19991543,"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","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-08-02T16:00:43.604Z","updated_at":"2025-03-03T06:15:37.032Z","avatar_url":"https://github.com/dig.png","language":"Lua","readme":"# onset-data\nAuthors: Digital\n\nFeel free to submit pull requests, I plan on adding all class names for objects, vehicles, doors, weapons and clothing.\n\n### Features\n* Adds all weapon class names, WEAPON_COLT, WEAPON_DEAGLE, etc.\n* Adds all vehicle class names, VEHICLE_GARBAGE_TRUCK, VEHICLE_NASCAR, etc.\n* Useful functions for vehicles \u0026 weapons.\n* All names are in fictional names instead of class names like the base game is. (Pistol01 -\u003e Deagle)\n\n### Installation\nDownload all files from this repository and place them inside your package in a folder called data.\n```packages/mypackage/data/```\u003cbr /\u003e\nAdd the following to your client_scripts in package.json,\n```json\n    \"data/util.lua\",\n    \"data/clothing.lua\",\n    \"data/doors.lua\",\n    \"data/objects.lua\",\n    \"data/vehicles.lua\",\n    \"data/weapons.lua\"\n```\nAdd the following to your server_scripts in package.json,\n```json\n    \"data/util.lua\",\n    \"data/clothing.lua\",\n    \"data/doors.lua\",\n    \"data/objects.lua\",\n    \"data/vehicles.lua\",\n    \"data/weapons.lua\"\n```\n\n### Example\n```lua\n-- Display weapon WEAPON_COLT's name.\nAddPlayerChat(GetWeaponName(WEAPON_COLT)) -- or GetWeaponName(5)\n\n-- Find a weapon ID by its name.\nlocal _myWeaponID = GetWeaponByName('Deagle')\nAddPlayerChat(_myWeaponID)\n```\n\n### Functions\n#### GetVehicleName\nFind a vehicle's name from its ID.\n```lua\nGetVehicleName(vehicleID)\n```\n* **vehicleID** A vehicle ID. Example: 5\n\u003cbr /\u003eReturns a string, if vehicle cannot be found then false will be returned.\n\n#### GetVehicleByName\nFind a vehicle ID by its name or alias.\n```lua\nGetVehicleByName(vehicleName)\n```\n* **vehicleName** The vehicle name you are looking for. Example: Ambulance\n\u003cbr /\u003eReturns a vehicle ID integer, if vehicle cannot be found then 0 will be returned.\n\n#### GetWeaponName\nFind a weapon's name from its ID.\n```lua\nGetWeaponName(weaponID)\n```\n* **weaponID** A weapon ID. Example: 5\n\u003cbr /\u003eReturns a string, if weapon cannot be found then false will be returned.\n\n#### GetWeaponByName\nFind a weapon ID by its name or alias.\n```lua\nGetWeaponByName(weaponName)\n```\n* **weaponName** The weapon name you are looking for. Example: Deagle\n\u003cbr /\u003eReturns a weapon ID integer, if weapon cannot be found then 0 will be returned.\n","funding_links":[],"categories":["Packages and Plugins"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdig%2Fonset-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdig%2Fonset-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdig%2Fonset-data/lists"}