This is typically a custom or an SAMP trainer designed to trigger chaotic events. These scripts often automate multiple actions simultaneously, such as: Auto-targeting players or NPCs. Rapid-fire spawning of vehicles or objects to lag servers. Teleportation to random "chaos zones" on the map.
It’s a testament to the longevity of GTA: San Andreas that 20 years later, people are still developing and looking for specific "KAOS" scripts to bypass modern multiplayer security.
The development of the "KAOS" scripts was part of a constant arms race between script creators and the admins of popular SAMP servers like Balkan School or Underground Republic .