Join the Game4Freak Discord Get exclusive plugin sneak peeks, talk directly with VisEntities, never miss important updates, and unlock special discount codes!

Solved Any Item Counts as Ammo in Counter Display

Junk

Customer
I'm finding the ammo counter is moving around, video attached
also you can put anything in the stash an it counts it as ammo
 

Attachments

  • Cannon.mp4
    1,004.1 KB
Could there be an option to turn off the counter?

Anything you put in counts as ammo
 

Attachments

  • Can Wood.png
    Can Wood.png
    1.1 MB · Views: 1
  • Can.png
    Can.png
    429.4 KB · Views: 1
Sorry to throw another possible bug at you but if you restart the server or reload the plugin it ejects the ammo out into a blue stash
This isn't a bug. When the server restarts, plugins are unloaded. When this plugin unloads, it automatically removes the stashes attached to cannons. That's intentional because you wouldn't want leftover stashes if the plugin is removed

When a stash is removed, any ammo inside it is dropped to the ground. Those items belong to players and were earned by them, so the plugin does not delete them. It simply drops them instead of wiping them

The same behavior happens if a cannon is destroyed. The stash is removed and its contents are dropped
 
This isn't a bug. When the server restarts, plugins are unloaded. When this plugin unloads, it automatically removes the stashes attached to cannons. That's intentional because you wouldn't want leftover stashes if the plugin is removed

When a stash is removed, any ammo inside it is dropped to the ground. Those items belong to players and were earned by them, so the plugin does not delete them. It simply drops them instead of wiping them

The same behavior happens if a cannon is destroyed. The stash is removed and its contents are dropped
Ah great, cheers for your help
 
Back
Top
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. Parameters in < > are required, while [ ] are optional.
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.
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. Ensure 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