Solved Compatibility with Better Loot and Selling Helicopters Through Shops

As far as I know Better Loot doesn't provide any APIs or hooks I can use to integrate with it. Alpha Loot is supported though, you can just provide a profile name, and that profile will be used to fill the helicopter crates

That said, CHT2 comes with a powerful built-in custom loot table system, you can define multiple loot groups inside a single loot table, giving you a ton of control over how loot is distributed

For selling helicopter calls, check out this section Calling Helicopters via Other Plugins. CHT2 supports multiple command types (chat, server console, and client console) so it works with pretty much any plugin that lets you run commands
 
Last edited:
i don't have alpha loot... Thanks for answer!
Yeah, I don't use it either, it's just there for the people who do. I personally use the built-in loot table, it's way better than the old one

But yeah unfortunately Better Loot doesn't really offer anything that would make integration possible, it's a pretty old plugin with barely any support or updates 🫠
 
I mean, technically you could set it up so Better Loot overrides the heli crate loot, but that would make all tiers share the same loot table, which defeats the point of having multiple tiers with different rewards
 
Back
Top
This plugin uses Oxide's permission system. Grant or revoke permissions using oxide.grant and oxide.revoke. You can assign them to individual players or groups using their Steam id or group name.
Chat commands start with a /, while console commands can be entered directly in the F1 console or server console. Use find <keyword> in console to search for available commands related to the plugin.
Settings are stored in the config file found under the config/ directory. You can edit this file manually, then reload the plugin to apply your changes.
Persistent data is saved in the data/ directory. This includes things like saved settings, usage stats, or player progress depending on the plugin. Deleting a data file will reset stored progress or customizations.
Language files are located in the lang/ folder. To translate messages, copy the en.json file into your target language folder (e.g. fr, de) and edit the values. Reload the plugin after changes to apply new messages.
This section lists public methods exposed by the plugin for use in other plugins. You can call these via the CallHook method. Make sure the plugin is loaded before calling its API to avoid null reference errors.
These are custom hooks that other plugins can listen for. Simply define a method with the same name and expected parameters in your plugin to handle the event. Hooks are triggered at key moments and are useful for extending or reacting to plugin behavior.
These hooks are injected into the game's code using Harmony. They let the plugin run code at key points in the game's internal logic. You can return values to block or modify behavior. Use with caution — these are powerful and can affect core mechanics.
Cart