{"id":42651096,"url":"https://github.com/mtasa-typescript/mtasa-lua-types","last_synced_at":"2026-01-29T07:32:58.348Z","repository":{"id":36989316,"uuid":"346288672","full_name":"mtasa-typescript/mtasa-lua-types","owner":"mtasa-typescript","description":"Typescript definitions for MTASA Lua to be used with the Lua compiler to TypeScript transpiler","archived":false,"fork":false,"pushed_at":"2023-05-08T00:59:36.000Z","size":7735,"stargazers_count":11,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T21:11:46.379Z","etag":null,"topics":["definitions","mtasa","mtasa-lua","mtasa-typescript","typescript"],"latest_commit_sha":null,"homepage":"https://mtasa-typescript.github.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtasa-typescript.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-10T08:42:42.000Z","updated_at":"2024-07-12T11:51:08.000Z","dependencies_parsed_at":"2023-02-19T01:16:17.201Z","dependency_job_id":null,"html_url":"https://github.com/mtasa-typescript/mtasa-lua-types","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/mtasa-typescript/mtasa-lua-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtasa-typescript%2Fmtasa-lua-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtasa-typescript%2Fmtasa-lua-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtasa-typescript%2Fmtasa-lua-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtasa-typescript%2Fmtasa-lua-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtasa-typescript","download_url":"https://codeload.github.com/mtasa-typescript/mtasa-lua-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtasa-typescript%2Fmtasa-lua-types/sbom","scorecard":{"id":666422,"data":{"date":"2025-08-11","repo":{"name":"github.com/mtasa-typescript/mtasa-lua-types","commit":"1b4393cc0e33de8d6ddfc181601be4efc5be22de"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/package.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/package.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/mtasa-typescript/mtasa-lua-types/package.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 25 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T18:10:42.312Z","repository_id":36989316,"created_at":"2025-08-21T18:10:42.312Z","updated_at":"2025-08-21T18:10:42.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28870385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T06:56:44.678Z","status":"ssl_error","status_checked_at":"2026-01-29T06:56:35.794Z","response_time":59,"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":["definitions","mtasa","mtasa-lua","mtasa-typescript","typescript"],"created_at":"2026-01-29T07:32:57.573Z","updated_at":"2026-01-29T07:32:58.332Z","avatar_url":"https://github.com/mtasa-typescript.png","language":"TypeScript","readme":"# 🎩 TypeScript type definitions for MTASA Lua\n\nDeclares TypeScripts types for MTASA. They are generated and updated with\n[wiki-parser](https://github.com/mtasa-typescript/mtasa-wiki-parser).\n\n# 🎈 How to use\n\n## 💎 You are MTASA Resource developer\n\n⚠ If you are resource developer, you should not manually install this package.\nThere is a [template](https://github.com/mtasa-typescript/resource-boilerplate)\nyou can use for creating MTASA Resources on TypeScript.\n\n## ⚒ Another way\n\nIf you would like to use the types outside of the resource,\nyou can add them into your project manually\n\n```shell\nnpm install --save-dev mtasa-lua-types\n```\n\n# 🌟 Features\n\nExamples of type definition features\n\n## ▶ Global Functions\n\n```ts\nimport { mtasa } from 'mtasa-lua-types/client'\n\nmtasa.outputChatBox(\n    `Your health: ${mtasa.getElementHealth(\n        mtasa.localPlayer\n    )}`\n)\n```\n\n![](.docs/global_functions.gif)\n\n## ▶ OOP\n\n```ts\nimport { mtasa } from 'mtasa-lua-types/server'\n\nconst v = new mtasa.Vehicle(411, 10, 11, 12)\nmtasa.Player\n    .getRandom()\n    .warpIntoVehicle(v, 1)\n```\n\n![](.docs/oop.gif)\n\n## ▶ Defined callbacks\n\n```ts\nimport { mtasa } from 'mtasa-lua-types/server'\n\nconst p = mtasa.Player.getRandom()\n\nmtasa.bindKey(\n    p,\n    '8',\n    'down',\n    function (player, key, state) {\n\n    }\n)\n```\n\n![](.docs/callback.gif)\n\n## ▶ Generics\n\n```ts\nimport { mtasa } from 'mtasa-lua-types/server'\nimport { BindKeyCallback } from 'mtasa-lua-types/server/structure'\n\nconst p = mtasa.Player.getRandom()\ntype CallbackFunctionType =\n    BindKeyCallback\u003c[number, string]\u003e;\n\nmtasa.bindKey\u003cCallbackFunctionType\u003e(\n    p,\n    '8',\n    'down',\n    function (player, key, state, num, str) {\n        mtasa.iprint(player, key, state, num, str)\n    },\n    5, 'string'\n)\n```\n\n![](.docs/generic.gif)\n\n# 🛠 How to contribute\n\nIf you found incorrect definitions or would like to suggest an idea, you can\n[create an issue](https://github.com/mtasa-typescript/mtasa-lua-types/issues).\n\nIf you would like to create a merge request, see the content below.\n\n## 🎇 Functions\n\nIf you would like to add or edit function. You should not edit code in this repository.\nA large part of function definitions are being automatically generated via mtasa-wiki-parser.\n\nSee the mtasa-wiki-parser [\"How to contribute\" documentation](https://github.com/mtasa-typescript/mtasa-wiki-parser/tree/develop#-how-to-contribute)\nfor more details.\n\n### ❗ `utf8` functions\n\nDue to [this issue](https://github.com/mtasa-typescript/mtasa-wiki-parser/issues/31) `utf8`\nfunctions are unprocessed by the mtasa-wiki-parser.\n\nAll utf8 function definitions can be changed manually.\n\n## 🕶 OOP Methods, Fields, Classes\n\nAll OOP declarations are being automatically generated via mtasa-wiki parser.\n\nSee the mtasa-wiki-parser [\"How to contribute\" documentation](https://github.com/mtasa-typescript/mtasa-wiki-parser#connect-dump-repository)\nfor more details.\n\n## 🔁 Code requirements\n\n- Be sure to run tests before creating a merge request.\n- Create an issue before doing the merge request, if it is possible.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtasa-typescript%2Fmtasa-lua-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtasa-typescript%2Fmtasa-lua-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtasa-typescript%2Fmtasa-lua-types/lists"}