Garry's Mod

Garry's Mod

[E2] WeaponCore
9 Comments
Sanders Mar 3, 2024 @ 9:06am 
this doesnt work

@name
@inputs
@outputs
@persist
@trigger
@strict
interval(10)



E = owner()
TYPE = "Pulse Ammo"

E:plySetAmmo(TYPE,900)


i get the error sv: Expression 2 (generic): entities/gmod_wire_expression2/core/custom/weaponcore.lua:84: bad argument #2 to 'SetAmmo' (number expected, got function)


what am i doing wrong?
pfych May 24, 2017 @ 1:12am 
Turns out I had to enable them in options....
Codingale May 23, 2017 @ 4:56pm 
You have a few functions that are restricted for no reason and do not return empty arrays.

for example, ply:getWeapons() shouldn't be restricted to admins.. nor should hasWeapon
pfych May 23, 2017 @ 1:15am 
I am having trouble getting any commands to work, E2 says they dont exist? tips?

GreyGhost Jan 27, 2016 @ 7:44pm 
Thank you!!!!!
Link117 Nov 18, 2015 @ 1:04pm 
what does it do i am a bite confuse :squirtheh:
Jedimaster127 Oct 31, 2015 @ 3:34pm 
What does it do?
Rubicon Oct 12, 2015 @ 12:37am 
YES!
X Aug 1, 2015 @ 11:20pm 
what does it do?