Function error? - (mask)

Hello everyone.

I have trouble converting this function to Gmod 13:


function PLAYER:HasLOS ( Entity )    
local tr = util.TraceLine(
    {             **<---- This is line 62.**
        start     = self:GetShootPos(),
        endpos     = Entity:GetPos() + Vector(0, 0, 64),
        filter     = { Entity, self, self:GetActiveWeapon() },
        mask     = CONTENTS_SOLID | CONTENTS_OPAQUE | CONTENTS_MOVEABLE
    } )
    
    local tr2 = util.TraceLine(
    {
        start     = self:GetShootPos(),
        endpos     = Entity:GetPos(),
        filter     = { Entity, self, self:GetActiveWeapon() },
        mask     = CONTENTS_SOLID | CONTENTS_OPAQUE | CONTENTS_MOVEABLE    **<--- This is line 66**
    } )
    
    if tr.Fraction > 0.98 or tr2.Fraction > 0.98 then return true; end
    return false;
end

The error I get:


cl_player.lua:66: '}' expected (to close '{' at line 62 near '|'

I hope some of you might have a solution to my problem?

Or should I just disable it? It is probably broken after gmod 13?

The bitwise opererators were removed so SOMETHING | LIKE | THIS would become bit.bor(SOMETHING, LIKE, THIS)