attempt to call field 'SpriteTrail' (a nil value)

this is my code:


function trailme( ply )
	util.SpriteTrail(ply, 0, Color(255,0,0), false, 15, 1, 4, 1/(15+1)*0.5, "trails/plasma.vmt")
end

concommand.Add( "trailme", trailme )


i am using it in a shop where when you click it calls that but it doesnt work anymore ( used to, dunno what happend tho)

Are you running this server side?

err… i think i am running it shared

[lua]
if !SERVER then return end
[/lua]

Add that to the start of your function.