{"id":51062277,"url":"https://github.com/rifleh700/dynamic_object_shader","last_synced_at":"2026-06-23T03:32:38.082Z","repository":{"id":212937348,"uuid":"732635780","full_name":"rifleh700/dynamic_object_shader","owner":"rifleh700","description":"MTA:SA dynamic object shader","archived":false,"fork":false,"pushed_at":"2025-07-27T13:36:12.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T15:44:53.413Z","etag":null,"topics":["hlsl","mta","mtasa","multitheftauto","shader"],"latest_commit_sha":null,"homepage":"","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/rifleh700.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":"2023-12-17T10:54:00.000Z","updated_at":"2025-07-27T13:36:15.000Z","dependencies_parsed_at":"2023-12-17T13:26:15.425Z","dependency_job_id":"1a456e31-3b82-4f8c-a125-ab80698bc72b","html_url":"https://github.com/rifleh700/dynamic_object_shader","commit_stats":null,"previous_names":["rifleh700/dynamic_object_shader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rifleh700/dynamic_object_shader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rifleh700%2Fdynamic_object_shader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rifleh700%2Fdynamic_object_shader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rifleh700%2Fdynamic_object_shader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rifleh700%2Fdynamic_object_shader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rifleh700","download_url":"https://codeload.github.com/rifleh700/dynamic_object_shader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rifleh700%2Fdynamic_object_shader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34674702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":["hlsl","mta","mtasa","multitheftauto","shader"],"created_at":"2026-06-23T03:32:37.320Z","updated_at":"2026-06-23T03:32:38.071Z","avatar_url":"https://github.com/rifleh700.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynamic_object_shader\n\n\n\u003e [!IMPORTANT]  \n\u003e **New function [setElementLighting](https://wiki.multitheftauto.com/wiki/SetElementLighting) is available (since 1.6.0 r22862)!\n\u003e Please just use **client-side** script below instead of this shader.**\n\u003e\t```lua\n\u003e\t\n\u003e\taddEventHandler(\"onClientPedsProcessed\", root,\n\u003e\t\tfunction()\n\u003e\t\t\tfor i, object in ipairs(getElementsByType(\"object\", root, true)) do\n\u003e\t\t\t\tlocal attachedTo = getElementAttachedTo(object)\n\u003e\t\t\t\tif attachedTo then\n\u003e\t\t\t\t\tlocal lighting = getElementLighting(attachedTo)\n\u003e\t\t\t\t\tif lighting then\n\u003e\t\t\t\t\t\tsetElementLighting(object, lighting)\n\u003e\t\t\t\t\tend\n\u003e\t\t\t\tend\n\u003e\t\t\tend\n\u003e\t\tend\n\u003e\t)\n\u003e\t```\n\n\u003e [!NOTE]  \n\u003e Also I found a little difference between shader and function. If you want check it - start this resource and use `dos [modelID]` command.\n\n\nMTA:SA dynamic object shader resource. It fixes attached objects lighting. Works with ped/player/vehicle/etc.\n\n![screenshot](https://i.imgur.com/XsOJTJq.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frifleh700%2Fdynamic_object_shader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frifleh700%2Fdynamic_object_shader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frifleh700%2Fdynamic_object_shader/lists"}