- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 426
 
Addon Loadouts #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Addon Loadouts #494
Conversation
| 
           I found some issues upon logging into the server or changing peds. Working on a fix. Issue is almost certainly with SpawnWeaponLoadoutAsync or SaveWeaponLoadout in CommonFunctions.cs  | 
    
| 
           Given how many issues I'm running into, marking as a draft until I get them all fixed. P.S. Codefactor is really mad about stuff I didn't edit and don't know how to fix.  | 
    
| 
           All features are working as intended!! For some reason, it is absolutely necessary that all instances of "...weapons_loadout..." are changed to "...weapon_loadout...". I have no idea why. I tried it both ways and it only worked without the S. All existing loadouts must be saved over (spawning it then replacing works just fine) to fix permissions and ammo.  | 
    
| 
           Had an issue with the menu not showing. the WP placeholder is present in the final ace permission, removed it and got the menu to show changed to 
 can confirm that the addon weapon menu shows after editing the permission name  | 
    
Fix weapon permissions
          
 Thanks for finding this. I've made a commit to fix it  | 
    
Add the ability to save and spawn addon weapons with load outs. Fix for #449
This also fixed the issue where saving a loadout while Unlimited Ammo was turned on caused it to spawn with no ammo. There was an issue with Unlimited Ammo that meant it didn't work if a loadout spawned with 0 ammo. Saving a loadout with Unlimited Ammo turned on will now cause it to save with max ammo
This code has not been reviewed or optimized. I recommend that both occur to ensure that the most efficient solution occurs. I am bad at both of these.