Garry's Mod

Garry's Mod

[E2] WeaponCore
9 Comments
Sanders 3 Mar, 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 24 May, 2017 @ 1:12am 
Turns out I had to enable them in options....
Codingale 23 May, 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 23 May, 2017 @ 1:15am 
I am having trouble getting any commands to work, E2 says they dont exist? tips?

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