include("shared.lua") function ENT:Draw() self.Rotation = ((self.Rotation or 0) + math.Clamp(FrameTime(), 1/120, 1) * 250) self:SetRenderAngles(Angle(0,self.Rotation,0)) self:DrawModel() end function ENT:Initialize() self:SetRenderBounds(Vector(7, 7, 15), Vector(-7, -7, -15)) end local ChatCommands = { ["!dropmoney"] = true, ["/dropmoney"] = true, } hook.Add( "OnPlayerChat", "CoinDropChatCommands", function( ply, str ) if not IsValid(ply) then return end local exp = string.Explode( " ", str ) if ChatCommands[ exp[1]:lower() ] then if LocalPlayer() == ply then RunConsoleCommand( "dropmoney", exp[2] ) end return true end end)