{"id":23084609,"url":"https://github.com/leonardssh/altv-blip-streamer","last_synced_at":"2025-04-03T14:45:42.033Z","repository":{"id":104339966,"uuid":"372495872","full_name":"leonardssh/altv-blip-streamer","owner":"leonardssh","description":"Blip streamer for ALTV, supports both global blips and blips that only show when within a specific range of the blip.","archived":false,"fork":false,"pushed_at":"2020-08-09T18:46:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T02:49:21.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CoffeeGen/altv-blip-streamer","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leonardssh.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":"2021-05-31T12:17:27.000Z","updated_at":"2021-05-31T12:17:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d58144d3-cd29-427e-8ca8-e9302b387a89","html_url":"https://github.com/leonardssh/altv-blip-streamer","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/leonardssh%2Faltv-blip-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardssh%2Faltv-blip-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardssh%2Faltv-blip-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardssh%2Faltv-blip-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardssh","download_url":"https://codeload.github.com/leonardssh/altv-blip-streamer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024116,"owners_count":20870935,"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-12-16T16:12:54.562Z","updated_at":"2025-04-03T14:45:42.021Z","avatar_url":"https://github.com/leonardssh.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ALT:V MP Server-side Blip Streamer\nA server-side C# implementation of a blip streamer for ALT:V MP. Supports both global blips that show on the map at all times and blips that only show within X range of the player.\n\n## Installation\n- This resource makes use of the ``AltV.Net.EntitySync`` and ``AltV.Net.EntitySync.ServerEvent`` nuget package, make sure to install those prior to using this resource.\n- Copy ``server-scripts/BlipStreamer.cs`` to your gamemode.\n- Make sure to add the following code to your gamemode's OnStart() method(the object streamer won't work without it!):\n```csharp\n// Documentation: https://fabianterhorst.github.io/coreclr-module/articles/entity-sync.html\nAltEntitySync.Init(1, 100, false,\n   (threadCount, repository) =\u003e new ServerEventNetworkLayer(threadCount, repository),\n   (entity, threadCount) =\u003e (entity.Id % threadCount), \n   (entityId, entityType, threadCount) =\u003e (entityId % threadCount),\n   (threadId) =\u003e new LimitedGrid3(50_000, 50_000, 100, 10_000, 10_000, 300),\n   new IdProvider());\n```\n- Copy ``blip-streamer`` to your ``server-root/resources`` directory.\n- Add ``\"blip-streamer\"`` to your server config resources list.\n\n## Usage\nThe following global methods are available:\n```csharp\n// Create a new dynamic blip on the map and returns the instance. A DynamicBlip can only be seen when the player is within X range of the blip.\nDynamicBlip CreateDynamicBlip( ulong blipId, string name, int color, int scale, bool shortRange, int spriteId, Vector3 position, int dimension, uint range = 300 );\n\n// Destroy a dynamic blip by it's instance.\nvoid DestroyDynamicBlip( DynamicBlip blip );\n\n// Create a new static blip that will show on the map at all times.\nStaticBlip CreateStaticBlip( int blipId, string name, int spriteId, Vector3 position, int dimension, int color, int scale, bool shortRange );\n\n// Destroy a static blip by it's instance.\nvoid DestroyStaticBlip( StaticBlip blip );\n\n// Destroy a static blip by it's blip ID.\nvoid DestroyStaticBlip( int blipId );\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardssh%2Faltv-blip-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardssh%2Faltv-blip-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardssh%2Faltv-blip-streamer/lists"}