Closed IbimsnicesYolo closed 2 years ago
There is no console commands for WUMA unfortunatly, but it is easy to create one for adding and removing them by simply using the WUMA.AddUserLoadoutWeapon(caller, user, item, primary, secondary, respect, scope)
function and the WUMA.RemoveUserLoadoutWeapon(caller, user, item)
.
The caller
argument on both functions can be nil, it is never used.
The scope
argument can also be nil.
The user
argument can be a player entity or a stream id string.
The item
argument is simply the class of the weapon, for example "weapon_ar2".
The primary
and secondary
arguments are the primary ammo and secondary ammo the player should spawn with. They can be set to -1 as well, this will make the player spawn with 4 times the magazine capacity, or 3 if the magazine capacity is 0.
The respect
argument is simpy a boolean that decides wheter the player will be able to spawn with the weapon even if it is restricted from them, it will not spawn restricted weapons when respect = true.
I would not mind a SAM integration, if you can make a pull request with the file included in the lua folder then we could start the process of integrating it :)
im using Github the first time now, idk how i make a pull reqest... Can i Send it to you with Google Drive or sth else?
Did it work? I tried it .....
It worked, you can see it at #61
is there an Console Command to add/remove a weapon from a players loadout?
And i made a file to integrate Wuma to Sam like in ULX if you want you can have it :)