{"id":23396505,"url":"https://github.com/stuyk/altv-os-global-textlabels","last_synced_at":"2025-04-11T14:42:29.443Z","repository":{"id":104272582,"uuid":"281531843","full_name":"Stuyk/altv-os-global-textlabels","owner":"Stuyk","description":"Global Text Labels with a simple interface to display information in-game.","archived":false,"fork":false,"pushed_at":"2021-04-11T12:48:14.000Z","size":30,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T10:51:11.455Z","etag":null,"topics":["altv","fivem","ragemp"],"latest_commit_sha":null,"homepage":"https://stuyk.com/","language":"JavaScript","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/Stuyk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["stuyk"]}},"created_at":"2020-07-22T00:11:58.000Z","updated_at":"2025-01-28T04:20:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3b80ca3-15d8-48be-a555-8509c3991941","html_url":"https://github.com/Stuyk/altv-os-global-textlabels","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/Stuyk%2Faltv-os-global-textlabels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Faltv-os-global-textlabels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Faltv-os-global-textlabels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stuyk%2Faltv-os-global-textlabels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stuyk","download_url":"https://codeload.github.com/Stuyk/altv-os-global-textlabels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248420258,"owners_count":21100348,"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":["altv","fivem","ragemp"],"created_at":"2024-12-22T07:36:00.921Z","updated_at":"2025-04-11T14:42:29.420Z","avatar_url":"https://github.com/Stuyk.png","language":"JavaScript","funding_links":["https://github.com/sponsors/stuyk","https://github.com/sponsors/Stuyk/"],"categories":[],"sub_categories":[],"readme":"# Open Source - Global Text Labels - alt:V\n\n[❤️ Become a Sponsor of my Open Source Work](https://github.com/sponsors/Stuyk/)\n\n[⌨️ Learn how to script for alt:V](https://altv.stuyk.com/)\n\n[💡 Need a Roleplay Script? Try Athena!](https://gtavathena.com/)\n\n⭐ This repository if you found it useful!\n\n---\n\n![](https://i.imgur.com/tTmia7K.jpg)\n\n# Description\n\nEasily create global text labels with custom color, font, scale, and distance. Text Labels are automatically synchronized when a player joins the server.\n\nKeep in mind that these are globally seen by all players.\n\n## Installing Dependencies / Installation\n\n**I cannot stress this enough. Ensure you have NodeJS 13+ or you will have problems.**\n\n-   [NodeJS 13+](https://nodejs.org/en/download/current/)\n-   An Existing or New Gamemode\n-   General Scripting Knowledge\n\nAfter simply add the name of this resource to your `server.cfg` resource section.\n\n`altv-os-global-textlabels`\n\nThen simply clone this repository into your main server resources folder.\n\n```\ncd resources\ngit clone https://github.com/Stuyk/altv-os-global-textlabels\n```\n\nEnsure your `package.json` includes this property:\n\n```json\n\"type\": \"module\"\n```\n\n## Creating a Text Label\n\nUses the event called `'textLabel:Create'`\n\n| Parameter    | Description                                |\n| ------------ | ------------------------------------------ |\n| `identifier` | Unique string to associate with the label. |\n| `text`       | The text to display in the label.          |\n| `position`   | A Vector3 or `position` to place it.       |\n| `distance`   | Distance before it draws for a player.     |\n| `fontType`   | 0,1,2,4, and 7                             |\n| `scale`      | Size of the text. Recommend: 0.4           |\n| `red`        | 0-255                                      |\n| `green`      | 0-255                                      |\n| `blue`       | 0-255                                      |\n| `alpha`      | 0-255                                      |\n\n### Example\n\n```js\nalt.emit(\n    'textLabel:Create',\n    'label2',\n    'Testing',\n    {\n        x: -1303.6351318359375,\n        y: 153.87692260742188,\n        z: 58.160400390625\n    },\n    5,\n    2,\n    0.4,\n    255,\n    255,\n    255,\n    100\n);\n```\n\n## Destroy a Text Label\n\nIf you ever need to destroy the label you have created during the runtime you can simply call `textLabel:Destroy`.\n\n| Parameter    | Description                                |\n| ------------ | ------------------------------------------ |\n| `identifier` | Unique string to associate with the label. |\n\n### Example\n\n```js\nalt.emit('textLabel:Destroy', 'label2');\n```\n\n# Other alt:V Open Source Resources\n\n-   [Authentication by Stuyk](https://github.com/Stuyk/altv-os-auth)\n-   [Discord Authentication by Stuyk](https://github.com/Stuyk/altv-discord-auth)\n-   [Global Blip Manager by Dzeknjak](https://github.com/jovanivanovic/altv-os-global-blip-manager)\n-   [Global Marker Manager by Dzeknjak](https://github.com/jovanivanovic/altv-os-global-marker-manager)\n-   [Chat by Dzeknjak](https://github.com/jovanivanovic/altv-os-chat)\n-   [Entity Sync for JS by LeonMrBonnie](https://github.com/LeonMrBonnie/altv-os-js-entitysync)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuyk%2Faltv-os-global-textlabels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuyk%2Faltv-os-global-textlabels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuyk%2Faltv-os-global-textlabels/lists"}