if masksOn then
RequestAnimDict(dict)
TaskPlayAnim( players, ads, "put_on_mask", 8.0, 1.0, -1, 49, 0, 0, 0, 0 )
Wait (600)
ClearPedSecondaryTask(PlayerPedId())
SetPedComponentVariation(GetPlayerPed(-1), 1, myMasks, masksTexture, 2)
else
RequestAnimDict(dict)
TaskPlayAnim( player, ad, "takeoff_mask", 8.0, 1.0, -1, 49, 0, 0, 0, 0 )
Wait (600)
ClearPedSecondaryTask(PlayerPedId())
SetPedComponentVariation(player, 1, 0 ,0 ,2)
end