]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/client/cheats/render.lua
Lua API: Particle callbacks; Add NoWeather
[dragonfireclient.git] / builtin / client / cheats / render.lua
1 core.register_list_command("xray", "Configure X-Ray", "xray_nodes") 
2 core.register_list_command("search", "Configure NodeESP", "node_esp_nodes") 
3
4 core.register_on_spawn_particle(function(particle)
5         if core.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then
6                 return true
7         end
8 end)
9
10 core.register_on_play_sound(function(sound)
11         if core.settings:get_bool("noweather") and sound.name == "weather_rain" then
12                 return true
13         end
14 end)