• (UNSOLVED)LUA Problems, Adding Items in that only certain people can buy
    1 replies, posted
Hi all, I Used this code to put in an item that only certain Id's can buy, And when i add a second id into this code alone it does not work, works fine with just one Steam Id, But fails with two. ITEM.CanPlayerBuy = function(self, ply) if ( ply:SteamID() == "INSERT STEAM ID" ) then return true end return false end Would each id need to have a seperate version of this code with they're id in to make it work? Its for Poinsthop BTW. Thanks,
[lua] ITEM.CanPlayerBuy = function( self, ePlayer ) if ( table.HasValue( { "STEAM ID", "STEAM ID", "STEAM ID", "BLAH BLAH BLAH" }, ePlayer:SteamID() ) ) then return true; end return false; end[/lua]
Sorry, you need to Log In to post a reply to this thread.